diff options
Diffstat (limited to 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index 494bf5876..1c3358254 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -2167,10 +2167,10 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "custom pseudos", function( as assert.expect( 6 ); try { - jQuery.expr.filters.foundation = jQuery.expr.filters.root; + jQuery.expr.pseudos.foundation = jQuery.expr.pseudos.root; assert.deepEqual( jQuery.find( ":foundation" ), [ document.documentElement ], "Copy element filter with new name" ); } finally { - delete jQuery.expr.filters.foundation; + delete jQuery.expr.pseudos.foundation; } try { @@ -2181,25 +2181,25 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "custom pseudos", function( as } try { - jQuery.expr.filters.aristotlean = jQuery.expr.createPseudo( function() { + jQuery.expr.pseudos.aristotlean = jQuery.expr.createPseudo( function() { return function( elem ) { return !!elem.id; }; } ); assert.t( "Custom element filter", "#foo :aristotlean", [ "sndp", "en", "yahoo", "sap", "anchor2", "timmy" ] ); } finally { - delete jQuery.expr.filters.aristotlean; + delete jQuery.expr.pseudos.aristotlean; } try { - jQuery.expr.filters.endswith = jQuery.expr.createPseudo( function( text ) { + jQuery.expr.pseudos.endswith = jQuery.expr.createPseudo( function( text ) { return function( elem ) { return jQuery.text( elem ).slice( -text.length ) === text; }; } ); assert.t( "Custom element filter with argument", "a:endswith(ogle)", [ "google" ] ); } finally { - delete jQuery.expr.filters.endswith; + delete jQuery.expr.pseudos.endswith; } try { @@ -2213,7 +2213,7 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "custom pseudos", function( as } ); assert.t( "Custom set filter", "#qunit-fixture p:second", [ "ap" ] ); } finally { - delete jQuery.expr.filters.second; + delete jQuery.expr.setFilters.second; } try { @@ -2233,7 +2233,7 @@ QUnit[ QUnit.jQuerySelectors ? "test" : "skip" ]( "custom pseudos", function( as } ); assert.t( "Custom set filter with argument", "#qunit-fixture p:slice(1:3)", [ "ap", "sndp" ] ); } finally { - delete jQuery.expr.filters.slice; + delete jQuery.expr.setFilters.slice; } } ); |