diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-21 20:22:13 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-21 20:22:13 +0100 |
commit | 59d15809a3c621ee20ea28ecfeed0d57e085420f (patch) | |
tree | 9de18088b9745e0f119e459497544066e39be6e4 /tests/unit/selectmenu/selectmenu_options.js | |
parent | b15dc8e3c582a539aaad988b96f6d7b89927edf5 (diff) | |
download | jquery-ui-59d15809a3c621ee20ea28ecfeed0d57e085420f.tar.gz jquery-ui-59d15809a3c621ee20ea28ecfeed0d57e085420f.zip |
Selectmenu: Introduce menuWidget method, to get access to the menu element. Fix various tests and simplify demos accordingly. Add comment about optgroup-click-handling.
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_options.js')
-rw-r--r-- | tests/unit/selectmenu/selectmenu_options.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/unit/selectmenu/selectmenu_options.js b/tests/unit/selectmenu/selectmenu_options.js index d5a787455..2271df167 100644 --- a/tests/unit/selectmenu/selectmenu_options.js +++ b/tests/unit/selectmenu/selectmenu_options.js @@ -17,11 +17,9 @@ test("appendTo another element", function () { test("dropdown: CSS styles", function () { expect(4); - var widget = this.element.selectmenu("widget"), - button = widget.filter(".ui-selectmenu-button"), - link = button.find("a"), - menu = widget.filter(".ui-selectmenu-menu"), - ul = widget.find("ul"); + var button = this.element.selectmenu("widget").parent(), + ul = this.element.selectmenu("menuWidget"), + link = button.find("a"); this.element.selectmenu("open"); ok( link.hasClass("ui-corner-top") && !link.hasClass("ui-corner-all"), "button styles dropdown"); |