Build: Update Sinon from 2.3.7 to 7.3.1, other updates

Closes gh-4341
This commit is contained in:
Michał Gołębiowski-Owczarek 2019-04-04 16:53:38 +02:00 committed by GitHub
parent 9b9fca45f3
commit fea7a2a328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26057 additions and 6013 deletions

31022
external/sinon/sinon.js vendored

File diff suppressed because one or more lines are too long

View File

@ -25,12 +25,12 @@
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@babel/core": "7.3.3",
"@babel/plugin-transform-for-of": "7.2.0",
"@babel/core": "7.4.3",
"@babel/plugin-transform-for-of": "7.4.3",
"commitplease": "3.2.0",
"core-js": "2.6.5",
"core-js": "3.0.0",
"eslint-config-jquery": "1.0.1",
"grunt": "1.0.3",
"grunt": "1.0.4",
"grunt-babel": "8.0.0",
"grunt-cli": "1.3.2",
"grunt-compare-size": "0.4.2",
@ -41,13 +41,13 @@
"grunt-jsonlint": "1.1.0",
"grunt-karma": "3.0.1",
"grunt-newer": "1.3.0",
"grunt-npmcopy": "0.1.0",
"grunt-npmcopy": "0.2.0",
"gzip-js": "0.3.2",
"husky": "1.3.1",
"insight": "0.10.1",
"jsdom": "13.2.0",
"jsdom": "14.0.0",
"karma": "4.0.1",
"karma-browserstack-launcher": "1.4.0",
"karma-browserstack-launcher": "1.5.1",
"karma-chrome-launcher": "2.2.0",
"karma-firefox-launcher": "1.1.0",
"karma-ie-launcher": "1.0.0",
@ -60,7 +60,7 @@
"qunit": "2.9.2",
"raw-body": "2.3.3",
"requirejs": "2.3.6",
"sinon": "2.3.7",
"sinon": "7.3.1",
"sizzle": "2.3.3",
"strip-json-comments": "2.0.1",
"testswarm": "1.1.0",

View File

@ -13,10 +13,10 @@ var oldRaf = window.requestAnimationFrame,
// This module tests jQuery.Animation and the corresponding 1.8+ effects APIs
QUnit.module( "animation", {
beforeEach: function() {
window.requestAnimationFrame = null;
this.sandbox = sinon.sandbox.create();
this.sandbox = sinon.createSandbox();
this.clock = this.sandbox.useFakeTimers( startTime );
this._oldInterval = jQuery.fx.interval;
window.requestAnimationFrame = null;
jQuery.fx.step = {};
jQuery.fx.interval = 10;
jQuery.Animation.prefilters = [ defaultPrefilter ];
@ -168,7 +168,7 @@ QUnit.test( "Animation.prefilter - prefilter return hooks", function( assert ) {
assert.equal( TweenSpy.callCount, 0, "Returning something never creates tweens" );
// Test overridden usage on queues:
prefilter.reset();
prefilter.resetHistory();
element = jQuery( "<div>" )
.css( "height", 50 )
.animate( props, 100 )
@ -200,7 +200,7 @@ QUnit.test( "Animation.prefilter - prefilter return hooks", function( assert ) {
// ourAnimation.stop.reset();
assert.equal( prefilter.callCount, 3, "Got the next animation" );
ourAnimation.stop.reset();
ourAnimation.stop.resetHistory();
// do not clear queue, gotoEnd
element.stop( false, true );

View File

@ -1,6 +1,6 @@
QUnit.module( "core", {
beforeEach: function() {
this.sandbox = sinon.sandbox.create();
this.sandbox = sinon.createSandbox();
},
afterEach: function() {
this.sandbox.restore();
@ -1448,7 +1448,7 @@ QUnit[ jQuery.Deferred ? "test" : "skip" ]( "jQuery.readyException (original)",
var message;
this.sandbox.stub( window, "setTimeout", function( fn ) {
this.sandbox.stub( window, "setTimeout" ).callsFake( function( fn ) {
try {
fn();
} catch ( error ) {
@ -1471,7 +1471,7 @@ QUnit[ jQuery.Deferred ? "test" : "skip" ]( "jQuery.readyException (custom)", fu
var done = assert.async();
this.sandbox.stub( jQuery, "readyException", function( error ) {
this.sandbox.stub( jQuery, "readyException" ).callsFake( function( error ) {
assert.strictEqual(
error.message,
"Error in jQuery ready",

View File

@ -13,10 +13,10 @@ var oldRaf = window.requestAnimationFrame,
QUnit.module( "effects", {
beforeEach: function() {
window.requestAnimationFrame = null;
this.sandbox = sinon.sandbox.create();
this.sandbox = sinon.createSandbox();
this.clock = this.sandbox.useFakeTimers( 505877050 );
this._oldInterval = jQuery.fx.interval;
window.requestAnimationFrame = null;
jQuery.fx.step = {};
jQuery.fx.interval = 10;
},

View File

@ -9,10 +9,10 @@ var oldRaf = window.requestAnimationFrame;
QUnit.module( "tween", {
beforeEach: function() {
window.requestAnimationFrame = null;
this.sandbox = sinon.sandbox.create();
this.sandbox = sinon.createSandbox();
this.clock = this.sandbox.useFakeTimers( 505877050 );
this._oldInterval = jQuery.fx.interval;
window.requestAnimationFrame = null;
jQuery.fx.step = {};
jQuery.fx.interval = 10;
},