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
This commit is contained in:
Oleg Gaidarenko
2016-01-29 21:07:28 +03:00
parent f0f4ef7475
commit b97c8d30c5
4 changed files with 2225 additions and 1862 deletions

View File

@@ -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')" );