aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/selectmenu_events.js
diff options
context:
space:
mode:
authorDan Wellman <danwellman@hotmail.com>2011-12-12 23:39:06 +0000
committerDan Wellman <danwellman@hotmail.com>2011-12-12 23:39:06 +0000
commitc1c0827c67de6d52936d7b1906051ab7be95827b (patch)
treeb01a2c7f9e934404c7b4bc4d77d449f86301139e /tests/unit/selectmenu/selectmenu_events.js
parent041de0716c6c3e81fe4f9f5d1a9c9c4447d8710a (diff)
downloadjquery-ui-c1c0827c67de6d52936d7b1906051ab7be95827b.tar.gz
jquery-ui-c1c0827c67de6d52936d7b1906051ab7be95827b.zip
Selectmenu: updated options and events unit tests
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r--tests/unit/selectmenu/selectmenu_events.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js
index ec4d3ff25..98171298b 100644
--- a/tests/unit/selectmenu/selectmenu_events.js
+++ b/tests/unit/selectmenu/selectmenu_events.js
@@ -14,16 +14,16 @@
ok(event, "change event fired on change");
equals(event.type, "selectmenuchange", "event type set to selectmenuchange");
ok(ui, "ui object is passed as second argument to event handler");
- equals(ui.item.element[0].nodeName, "OPTION", "ui points to original option element");
+ equals(ui.item.element[0].nodeName, "OPTION", "ui.item.element[0] points to original option element");
+ equals(ui.item.value, value, "ui.item.value property updated correctly");
}
});
var widget = this.element.selectmenu("widget"),
- menu = widget.filter(".ui-selectmenu-menu");
+ menu = widget.filter(".ui-selectmenu-menu"),
+ value = this.element.find("option").eq(0).text();
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 () {