diff options
author | Florian Müllner <fmuellner@gnome.org> | 2013-07-09 03:31:58 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2015-05-05 16:37:41 +0200 |
commit | 86e04048ff6339c198bef81cc24b8d30fa9a8481 (patch) | |
tree | f403100e19aa15d8747424670121f0a5f4072120 /tests | |
parent | d7c0ff5e89f3f802627f6500e501f2a5de277ccd (diff) | |
download | gnome-shell-86e04048ff6339c198bef81cc24b8d30fa9a8481.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/interactive/table.js | 57 |
2 files changed, 0 insertions, 58 deletions
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(); |