aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/selectmenu_events.js
diff options
context:
space:
mode:
authorDan Wellman <danwellman@hotmail.com>2011-12-01 15:36:49 +0000
committerDan Wellman <danwellman@hotmail.com>2011-12-01 15:52:12 +0000
commit7d5238ad632d16da2b1e5c2af289c1a3381f5dd0 (patch)
treea396f0a59e879a1b024984b9e1b5da725973eeca /tests/unit/selectmenu/selectmenu_events.js
parentf381749ed7d557c65970df24c9f2dab4fbc242ac (diff)
downloadjquery-ui-7d5238ad632d16da2b1e5c2af289c1a3381f5dd0.tar.gz
jquery-ui-7d5238ad632d16da2b1e5c2af289c1a3381f5dd0.zip
Selectmenu: removed duplicates from options unit tests and added new options and events tests
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r--tests/unit/selectmenu/selectmenu_events.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js
index 86bc33177..ec4d3ff25 100644
--- a/tests/unit/selectmenu/selectmenu_events.js
+++ b/tests/unit/selectmenu/selectmenu_events.js
@@ -7,7 +7,7 @@
});
test("change", function () {
- expect(4);
+ expect(5);
this.element.selectmenu({
change: function (event, ui) {
@@ -22,6 +22,8 @@
menu = widget.filter(".ui-selectmenu-menu");
menu.find(".ui-menu-item").eq(0).simulate("click");
+
+ equals(this.element.selectmenu("option", "value"), "Slower", "should be set to first option");
});
test("close", function () {