From f1300f18877f0140994190bb1b3a945fa4b2fd3d Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Sun, 31 Jan 2016 12:09:48 +0300 Subject: [PATCH] Tests: fix another traverse test Tricky test - if isolated, was executed fine, but falling if runned with other tests Ref b97c8d30c5aedace75dc17056d429f28e41b20c1 --- test/unit/traversing.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ) { -- 2.39.5