From 7d5238ad632d16da2b1e5c2af289c1a3381f5dd0 Mon Sep 17 00:00:00 2001 From: Dan Wellman Date: Thu, 1 Dec 2011 15:36:49 +0000 Subject: Selectmenu: removed duplicates from options unit tests and added new options and events tests --- tests/unit/selectmenu/selectmenu_events.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/unit/selectmenu/selectmenu_events.js') 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 () { -- cgit v1.2.3