diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2014-05-29 21:54:45 +0400 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-05-29 21:55:15 +0400 |
commit | 369add5f1d2128559aacd76b224d5171ba151eca (patch) | |
tree | 5ab12ebfc34b74f11171e522f2a6f78f9ee81427 | |
parent | 9e5f49fde33a4a74fce0c4dd0582d52399a08fcd (diff) | |
download | jquery-369add5f1d2128559aacd76b224d5171ba151eca.tar.gz jquery-369add5f1d2128559aacd76b224d5171ba151eca.zip |
Selector: Use jQuery reference not Sizzle
(Cherry-picked from 3b9057a18de31b838bd0dd25ea466993b62f9dd9)
-rw-r--r-- | test/unit/selector.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js index e963187ff..c4c760522 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -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; |