From 84621940bfa9e8ca5db20e6ab8caa9fb65b0a7e9 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 20 Dec 2012 00:12:35 +0100 Subject: [PATCH] Selectmenu tests: remove option dropdown --- tests/unit/selectmenu/selectmenu_common.js | 14 ++++++++------ tests/unit/selectmenu/selectmenu_options.js | 16 +--------------- tests/visual/selectmenu/disabled_empty.html | 8 ++------ 3 files changed, 11 insertions(+), 27 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); diff --git a/tests/visual/selectmenu/disabled_empty.html b/tests/visual/selectmenu/disabled_empty.html index 199bac7f5..e7a9e9fb2 100644 --- a/tests/visual/selectmenu/disabled_empty.html +++ b/tests/visual/selectmenu/disabled_empty.html @@ -14,12 +14,8 @@