aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/traversing.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-01-29 21:07:28 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-01-29 21:22:52 +0300
commitb97c8d30c5aedace75dc17056d429f28e41b20c1 (patch)
tree9b4435c6e64dbf8a46620783cea97d68fcf485f6 /test/unit/traversing.js
parentf0f4ef7475376513757c852e977f3e45b00cea12 (diff)
downloadjquery-b97c8d30c5aedace75dc17056d429f28e41b20c1.tar.gz
jquery-b97c8d30c5aedace75dc17056d429f28e41b20c1.zip
Tests:Build: update qunit and fix incorrect test
* Update QUnit to the latest version (1.20.0) * Corrected test was dependent on QUnit UI, which is always a bad idea
Diffstat (limited to 'test/unit/traversing.js')
-rw-r--r--test/unit/traversing.js27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/unit/traversing.js b/test/unit/traversing.js
index 3e0c3765b..2ad8ee8a8 100644
--- a/test/unit/traversing.js
+++ b/test/unit/traversing.js
@@ -393,8 +393,31 @@ QUnit.test( "closest(jQuery)", function( assert ) {
QUnit[ jQuery.find.compile ? "test" : "skip" ]( "not(Selector)", function( assert ) {
assert.expect( 7 );
assert.equal( jQuery( "#qunit-fixture > p#ap > a" ).not( "#google" ).length, 2, "not('selector')" );
- assert.deepEqual( jQuery( "p" ).not( ".result" ).get(), q( "firstp", "ap", "sndp", "en", "sap", "first" ), "not('.class')" );
- assert.deepEqual( jQuery( "p" ).not( "#ap, #sndp, .result" ).get(), q( "firstp", "en", "sap", "first" ), "not('selector, selector')" );
+
+ assert.deepEqual(
+ jQuery( "#qunit-fixture p" ).not( ".result" ).get(),
+ q(
+ "firstp",
+ "ap",
+ "sndp",
+ "en",
+ "sap",
+ "first"
+ ),
+ "not('.class')"
+ );
+
+
+ assert.deepEqual(
+ jQuery( "#qunit-fixture p" ).not( "#ap, #sndp, .result" ).get(),
+ q(
+ "firstp",
+ "en",
+ "sap",
+ "first"
+ ),
+ "not('selector, selector')"
+ );
assert.deepEqual( jQuery( "#ap *" ).not( "code" ).get(), q( "google", "groups", "anchor1", "mark" ), "not('tag selector')" );
assert.deepEqual( jQuery( "#ap *" ).not( "code, #mark" ).get(), q( "google", "groups", "anchor1" ), "not('tag, ID selector')" );