aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-01-31 12:09:48 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-01-31 12:09:48 +0300
commitf1300f18877f0140994190bb1b3a945fa4b2fd3d (patch)
treeb0e1f14154af3702be47f5b4bcce5ff44b32efa9 /test/unit/traversing.js
parentb97c8d30c5aedace75dc17056d429f28e41b20c1 (diff)
downloadjquery-f1300f18877f0140994190bb1b3a945fa4b2fd3d.tar.gz
jquery-f1300f18877f0140994190bb1b3a945fa4b2fd3d.zip
Tests: fix another traverse test
Tricky test - if isolated, was executed fine, but falling if runned with other tests Ref b97c8d30c5aedace75dc17056d429f28e41b20c1
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 2ad8ee8a8..74da6d973 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -463,7 +463,11 @@ QUnit.test( "not(Array)", function( assert ) {
QUnit.test( "not(jQuery)", function( assert ) {
assert.expect( 1 );
- assert.deepEqual( jQuery( "p" ).not( jQuery( "#ap, #sndp, .result" ) ).get(), q( "firstp", "en", "sap", "first" ), "not(jQuery)" );
+ assert.deepEqual(
+ jQuery( "#qunit-fixture p" ).not( jQuery( "#ap, #sndp, .result" ) ).get(),
+ q( "firstp", "en", "sap", "first" ),
+ "not(jQuery)"
+ );
} );
QUnit.test( "not(Selector) excludes non-element nodes (gh-2808)", function( assert ) {