]> source.dussan.org Git - jquery.git/commitdiff
Selector: Use jQuery reference not Sizzle
authorOleg Gaidarenko <markelog@gmail.com>
Thu, 29 May 2014 17:54:45 +0000 (21:54 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Thu, 29 May 2014 17:55:15 +0000 (21:55 +0400)
(Cherry-picked from 3b9057a18de31b838bd0dd25ea466993b62f9dd9)

test/unit/selector.js

index e963187ff0d3d5979a8b1bd7d07752af2a9e71aa..c4c7605223065b01bf5cfc7957bd443398fc10a9 100644 (file)
@@ -485,13 +485,17 @@ asyncTest( "Iframe dispatch should not affect jQuery (#13936)", 1, function() {
 
                try {
                        iframeDoc = this.contentDocument || this.contentWindow.document;
-                       form = Sizzle( "#navigate", iframeDoc )[ 0 ];
+                       form = jQuery( "#navigate", iframeDoc )[ 0 ];
                } catch ( e ) {
                        thrown = e;
                }
 
                if ( loaded ) {
-                       strictEqual( thrown, false, "No error thrown from post-reload Sizzle call" );
+                       strictEqual( thrown, false, "No error thrown from post-reload jQuery call" );
+
+                       // clean up
+                       jQuery( iframe ).off();
+
                        start();
                } else {
                        loaded = true;