diff options
author | Felix Nagel <info@felixnagel.com> | 2012-12-20 00:12:35 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-12-20 00:12:35 +0100 |
commit | 84621940bfa9e8ca5db20e6ab8caa9fb65b0a7e9 (patch) | |
tree | aed033bfe26d428ce3292ec32f03eddd10c1a9f5 /tests/unit/selectmenu | |
parent | a787d52d4af712fb608e0e050d439db2cbc5550a (diff) | |
download | jquery-ui-84621940bfa9e8ca5db20e6ab8caa9fb65b0a7e9.tar.gz jquery-ui-84621940bfa9e8ca5db20e6ab8caa9fb65b0a7e9.zip |
Selectmenu tests: remove option dropdown
Diffstat (limited to 'tests/unit/selectmenu')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_common.js | 14 | ||||
-rw-r--r-- | tests/unit/selectmenu/selectmenu_options.js | 16 |
2 files changed, 9 insertions, 21 deletions
diff --git a/tests/unit/selectmenu/selectmenu_common.js b/tests/unit/selectmenu/selectmenu_common.js index 11e536e70..af76aa581 100644 --- a/tests/unit/selectmenu/selectmenu_common.js +++ b/tests/unit/selectmenu/selectmenu_common.js @@ -2,18 +2,20 @@ TestHelpers.commonWidgetTests( "selectmenu", { defaults: { appendTo: null, disabled: false, - dropdown: true, + icons: { + button: "ui-icon-triangle-1-s" + }, position: { my: "left top", at: "left bottom", collision: "none" }, - // callbacks, + // callbacks create: null, - open: null, - focus: null, - select: null, + change: null, close: null, - change: null + focus: null, + open: null, + select: null } }); diff --git a/tests/unit/selectmenu/selectmenu_options.js b/tests/unit/selectmenu/selectmenu_options.js index 21e276b5d..ea40ebe00 100644 --- a/tests/unit/selectmenu/selectmenu_options.js +++ b/tests/unit/selectmenu/selectmenu_options.js @@ -45,7 +45,7 @@ test("appendTo another element", function () { }); -test("dropdown: CSS styles", function () { +test("CSS styles", function () { expect(2); var element = $("#speed").selectmenu(), @@ -57,18 +57,4 @@ test("dropdown: CSS styles", function () { ok( menu.hasClass("ui-corner-bottom") && !menu.hasClass("ui-corner-all"), "menu styles dropdown"); }); -test("pop-up: CSS styles", function () { - expect(2); - - var element = $("#speed").selectmenu({ - dropdown: false - }), - button = element.selectmenu("widget"), - menu = element.selectmenu("menuWidget"); - - element.selectmenu("close"); - ok( !button.hasClass("ui-corner-top") && button.hasClass("ui-corner-all") && button.find("span.ui-icon").hasClass("ui-icon-triangle-2-n-s"), "button styles pop-up"); - ok( !menu.hasClass("ui-corner-bottom") && menu.hasClass("ui-corner-all"), "menu styles pop-up"); -}); - })(jQuery); |