mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
f0f4ef7475
commit
b97c8d30c5
24
external/qunit/qunit.css
vendored
24
external/qunit/qunit.css
vendored
@ -1,27 +1,27 @@
|
||||
/*!
|
||||
* QUnit 1.18.0
|
||||
* QUnit 1.20.0
|
||||
* http://qunitjs.com/
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: 2015-04-03T10:23Z
|
||||
* Date: 2015-10-27T17:53Z
|
||||
*/
|
||||
|
||||
/** Font Family and Sizes */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
|
||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||
#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||
#qunit-tests { font-size: smaller; }
|
||||
|
||||
|
||||
/** Resets */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@ -68,6 +68,12 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#qunit-filteredTest {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
background-color: #F4FF77;
|
||||
color: #366097;
|
||||
}
|
||||
|
||||
#qunit-userAgent {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
background-color: #2B81AF;
|
||||
@ -118,8 +124,8 @@
|
||||
#qunit-tests.hidepass li.pass {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
@ -162,6 +168,10 @@
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.qunit-source {
|
||||
margin: 0.6em 0 0.3em;
|
||||
}
|
||||
|
||||
.qunit-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
4034
external/qunit/qunit.js
vendored
4034
external/qunit/qunit.js
vendored
File diff suppressed because it is too large
Load Diff
@ -49,7 +49,7 @@
|
||||
"promises-aplus-tests": "2.1.1",
|
||||
"q": "1.4.1",
|
||||
"qunit-assert-step": "1.0.3",
|
||||
"qunitjs": "1.18.0",
|
||||
"qunitjs": "1.20.0",
|
||||
"requirejs": "2.1.22",
|
||||
"sinon": "1.17.3",
|
||||
"sizzle": "2.3.0",
|
||||
|
@ -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')" );
|
||||
|
Loading…
Reference in New Issue
Block a user