aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/selectmenu_events.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-04-29 23:15:56 +0200
committerFelix Nagel <info@felixnagel.com>2013-04-29 23:15:56 +0200
commit4c930fd59b9d2985074a3ad2d665f111d9d7d64c (patch)
treec353ed14818ad1bf27b1f1bcab510cb627b9b66f /tests/unit/selectmenu/selectmenu_events.js
parentb8339ebc469cae1dfa5386247d61a997106c64e6 (diff)
downloadjquery-ui-4c930fd59b9d2985074a3ad2d665f111d9d7d64c.tar.gz
jquery-ui-4c930fd59b9d2985074a3ad2d665f111d9d7d64c.zip
Selectmenu Tests: add spaces to [0]
Diffstat (limited to 'tests/unit/selectmenu/selectmenu_events.js')
-rw-r--r--tests/unit/selectmenu/selectmenu_events.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js
index aefd78b94..8fd85a851 100644
--- a/tests/unit/selectmenu/selectmenu_events.js
+++ b/tests/unit/selectmenu/selectmenu_events.js
@@ -13,7 +13,7 @@ test( "change", function () {
change: function ( event, ui ) {
ok( event, "change event fired on change" );
equal( event.type, "selectmenuchange", "event type set to selectmenuchange" );
- equal( ui.item.element[ 0 ].nodeName.toLowerCase(), "option", "ui.item.element[0] points to original option element" );
+ equal( ui.item.element[ 0 ].nodeName.toLowerCase(), "option", "ui.item.element[ 0 ] points to original option element" );
equal( ui.item.value, value, "ui.item.value property updated correctly" );
}
});
@@ -50,7 +50,7 @@ test( "focus", function () {
focus: function ( event, ui ) {
ok( event, "focus event fired on mouseover" );
equal( event.type, "selectmenufocus", "event type set to selectmenufocus" );
- equal( ui.item.element[0].nodeName.toLowerCase(), "option", "ui points to original option element" );
+ equal( ui.item.element[ 0 ].nodeName.toLowerCase(), "option", "ui points to original option element" );
}
});
@@ -89,7 +89,7 @@ test( "select", function () {
select: function ( event, ui ) {
ok( event, "select event fired on item select" );
equal( event.type, "selectmenuselect", "event type set to selectmenuselect" );
- equal( ui.item.element[0].nodeName.toLowerCase(), "option", "ui points to original option element" );
+ equal( ui.item.element[ 0 ].nodeName.toLowerCase(), "option", "ui points to original option element" );
}
});