From 86e04048ff6339c198bef81cc24b8d30fa9a8481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 9 Jul 2013 03:31:58 +0200 Subject: st: Remove StTable Alas, the last use of StTable is not gone, so we can finally remove our copy of the widget. https://bugzilla.gnome.org/show_bug.cgi?id=703833 --- tests/Makefile.am | 1 - tests/interactive/table.js | 57 ---------------------------------------------- 2 files changed, 58 deletions(-) delete mode 100644 tests/interactive/table.js (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am index 74567f486..beecb4634 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,7 +18,6 @@ TEST_JS = \ interactive/inline-style.js \ interactive/scrolling.js \ interactive/scroll-view-sizing.js \ - interactive/table.js \ interactive/test-title.js \ interactive/transitions.js \ testcommon/100-200.svg \ diff --git a/tests/interactive/table.js b/tests/interactive/table.js deleted file mode 100644 index a18ea2b3a..000000000 --- a/tests/interactive/table.js +++ /dev/null @@ -1,57 +0,0 @@ -// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- - -const Clutter = imports.gi.Clutter; -const St = imports.gi.St; - -const UI = imports.testcommon.ui; - -function test() { - let stage = new Clutter.Stage({ width: 600, height: 600 }); - UI.init(stage); - - let vbox = new St.BoxLayout({ vertical: true, - width: stage.width, - height: stage.height, - style: 'padding: 10px; ' - + 'spacing: 10px;' - + 'font: 15px sans-serif;' }); - stage.add_actor(vbox); - - function L(text, color) { - return new St.Label({ text: text, - style: "background: " + color + ";" - + "border: 1px solid rgba(0,0,0,0.5);" - + "padding: 1em;" }); - } - - //////////////////////////////////////////////////////////////////////////////// - - let table = new St.Table({ style: "border: 10px solid #888888;" - + "padding: 10px;" - + "spacing-rows: 5px;" - + "spacing-columns: 15px;" }); - vbox.add(table, { expand: true }); - - table.add(L("1", "#ff0000"), - { row: 0, col: 0, col_span: 3 }); - table.add(L("2", "#00ff00"), - { row: 1, col: 0, row_span: 2 }); - table.add(L("3", "#0000ff"), - { row: 1, col: 1, - x_expand: 0 }); - table.add(L("4", "#ffff00"), - { row: 1, col: 2, - y_expand: 0, y_fill: 0 - }); - table.add(L("5", "#ff00ff"), - { row: 2, col: 1, x_expand: 0 }); - table.add(L("6", "#00ffff"), - { row: 2, col: 2, - x_expand: 0, x_fill: 0, x_align: St.Align.END, - y_expand: 0, y_fill: 0, y_align: St.Align.END }); - - //////////////////////////////////////////////////////////////////////////////// - - UI.main(stage); -} -test(); -- cgit v1.2.1