summaryrefslogtreecommitdiff
path: root/test/smoke-tests
diff options
context:
space:
mode:
authorFelipe Erias Morandeira <femorandeira@igalia.com>2013-07-19 13:01:28 +0100
committerFelipe Erias Morandeira <femorandeira@igalia.com>2013-07-22 11:43:07 +0100
commitee9c7244f01af156f885c291e49caa12c765ad70 (patch)
treedf0f6038cfd827ae804c3a45752963021746dd96 /test/smoke-tests
parent88567d3a86117c03d591f835414faa803644c6ba (diff)
Smoke tests for "label-position" in EosActionButton
[endlessm/eos-sdk#108]
Diffstat (limited to 'test/smoke-tests')
-rw-r--r--test/smoke-tests/action-buttons.js29
-rw-r--r--test/smoke-tests/eosactionbutton.css4
2 files changed, 31 insertions, 2 deletions
diff --git a/test/smoke-tests/action-buttons.js b/test/smoke-tests/action-buttons.js
index cc8534b..7997793 100644
--- a/test/smoke-tests/action-buttons.js
+++ b/test/smoke-tests/action-buttons.js
@@ -29,8 +29,33 @@ const TestApplication = new Lang.Class ({
this._menu_panel.get_style_context().remove_class('dark');
}
}));
- this._content.add(new Gtk.Label ({label: 'Dark action menu'}), 0, 0, 1, 1);
- this._content.add(this._darkSwitch, 0, 1, 1, 1);
+ this._content.attach(new Gtk.Label ({label: 'Dark action menu'}), 0, 0, 1, 1);
+ this._content.attach(this._darkSwitch, 1, 0, 1, 1);
+
+ this._content.attach (new Endless.ActionButton({
+ name: 'LEFT',
+ 'icon-id': 'object-select-symbolic',
+ label: 'LEFT',
+ 'label-position': Gtk.PositionType.LEFT
+ }), 0, 1, 1, 1);
+ this._content.attach (new Endless.ActionButton({
+ name: 'TOP',
+ 'icon-id': 'object-select-symbolic',
+ label: 'TOP',
+ 'label-position': Gtk.PositionType.TOP
+ }), 1, 1, 1, 1);
+ this._content.attach (new Endless.ActionButton({
+ name: 'BOTTOM',
+ 'icon-id': 'object-select-symbolic',
+ label: 'BOTTOM',
+ 'label-position': Gtk.PositionType.BOTTOM
+ }), 0, 2, 1, 1);
+ this._content.attach (new Endless.ActionButton({
+ name: 'RIGHT',
+ 'icon-id': 'object-select-symbolic',
+ label: 'RIGHT',
+ 'label-position': Gtk.PositionType.RIGHT
+ }), 1, 2, 1, 1);
this._menu = new Endless.ActionMenu ();
diff --git a/test/smoke-tests/eosactionbutton.css b/test/smoke-tests/eosactionbutton.css
index 13ddfe4..b01e3cf 100644
--- a/test/smoke-tests/eosactionbutton.css
+++ b/test/smoke-tests/eosactionbutton.css
@@ -1,5 +1,9 @@
/* ****** ACTION MENU ****** */
+GtkWindow {
+ background-color: mix(white, black, 0.1);
+}
+
#menu {
background-color: mix(white, black, 0.2);
border-color: mix(white, black, 0.5);