]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu tests: Proper detection for absence of ui-state-disabled class.
authorScott González <scott.gonzalez@gmail.com>
Tue, 10 Jul 2012 18:01:23 +0000 (14:01 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 10 Jul 2012 18:01:23 +0000 (14:01 -0400)
tests/unit/menu/menu_options.js

index a5df700261d685a64bcd51185df6180850596eb3..1ccbb20ab3aa453900dbf2d124486b5108b16383 100644 (file)
@@ -18,7 +18,7 @@ test( "{ disabled: true }", function() {
                        log();
                }
        });
-       ok( element.is( ".ui-state-disabled" ), "Missing ui-state-disabled class" );
+       ok( element.hasClass( "ui-state-disabled" ), "Missing ui-state-disabled class" );
        log( "click", true );
        click( element, "1" );
        log( "afterclick" );
@@ -33,7 +33,7 @@ test( "{ disabled: false }", function() {
                        log();
                }
        });
-       ok( element.not( ".ui-state-disabled" ), "Has ui-state-disabled class" );
+       ok( !element.hasClass( "ui-state-disabled" ), "Has ui-state-disabled class" );
        log( "click", true );
        click( element, "1" );
        log( "afterclick" );