aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-03-23 18:42:23 -0400
committerScott González <scott.gonzalez@gmail.com>2015-03-25 15:55:53 -0400
commit899d90709a141ce22fedab2cfdf6044d9928f831 (patch)
tree3ffc9ed66db142e5661586fa42083bb4bcb7cadd /tests/unit/menu
parente109e768190089744804d084e9a26f010dd63a37 (diff)
downloadjquery-ui-899d90709a141ce22fedab2cfdf6044d9928f831.tar.gz
jquery-ui-899d90709a141ce22fedab2cfdf6044d9928f831.zip
Tests: Handle jQuery git returning `null` for empty attributes
jQuery now returns `null` for empty attributes instead of `undefined`. Closes gh-1516
Diffstat (limited to 'tests/unit/menu')
-rw-r--r--tests/unit/menu/menu_options.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/menu/menu_options.js b/tests/unit/menu/menu_options.js
index 39ba62e3c..3df547334 100644
--- a/tests/unit/menu/menu_options.js
+++ b/tests/unit/menu/menu_options.js
@@ -107,11 +107,11 @@ test( "{ role: null }", function( assert ) {
}),
items = element.find( "li" );
expect( 2 + 3 * items.length );
- strictEqual( element.attr( "role" ), undefined );
+ equal( element.attr( "role" ), null );
ok( items.length > 0, "number of menu items" );
items.each(function( item ) {
assert.hasClasses( $( this ), "ui-menu-item" );
- equal( $( this ).find( ".ui-menu-item-wrapper" ).attr( "role" ), undefined,
+ equal( $( this ).find( ".ui-menu-item-wrapper" ).attr( "role" ), null,
"menu item ("+ item + ") role" );
equal( $( this ).find( ".ui-menu-item-wrapper" ).attr( "tabindex" ), "-1",
"tabindex for menu item ("+ item + ")" );