1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-31 03:11:11 +02:00
video.js/test/sinon-externs.js
Steve Heffernan d7f840a969 Better error handling. closes #1197
Squashed commit of the following:

commit 81d785980d
Author: Steve Heffernan <steve@zencoder.com>
Date:   Mon May 12 12:53:59 2014 -0700

    Removed unneeded comments

commit c7ad7322e4
Author: Steve Heffernan <steve@zencoder.com>
Date:   Fri May 9 14:29:31 2014 -0700

    Addressed comments in #1191
    Now clearing errors on loadstart events.
    Added some default error messages.

commit a742239d0e
Author: Steve Heffernan <steve@zencoder.com>
Date:   Wed May 7 15:38:31 2014 -0700

    Fixed the error display to hide by default

commit 561c3f8449
Author: Steve Heffernan <steve@zencoder.com>
Date:   Mon May 5 10:44:47 2014 -0700

    Added support for displaying a message for the error.

commit 2214207842
Author: Steve Heffernan <steve@zencoder.com>
Date:   Fri May 2 17:18:22 2014 -0700

    Updated spinner to hide on all errors

commit 95d7e70274
Author: Steve Heffernan <steve@zencoder.com>
Date:   Fri May 2 15:37:44 2014 -0700

    Exported ErrorDisplay

commit 11ca9cdd8d
Author: Steve Heffernan <steve@zencoder.com>
Date:   Fri May 2 15:35:46 2014 -0700

    Updated flash tech to support new errors

commit 56cbe66f42
Author: Steve Heffernan <steve@zencoder.com>
Date:   Fri May 2 13:06:49 2014 -0700

    Started on better error handling and displaying in the UI when an error has occurred.

commit 740014c57b
Author: Steve Heffernan <steve@zencoder.com>
Date:   Wed Apr 30 16:11:33 2014 -0700

    Added better global log/error/warn functions.
    Added sinon.js for stubs in tests.
    Updated grunt version to satisfy peer dependency warning.
2014-05-12 17:08:48 -07:00

100 lines
3.8 KiB
JavaScript

/**
* Sinon externs
*/
function sinon(){}
sinon.stub = function(){};
sinon.spy = function(){};
sinon.mock = function(){};
Function.prototype.alwaysCalledOn = function(){};
Function.prototype.alwaysCalledWith = function(){};
Function.prototype.alwaysCalledWithExactly = function(){};
Function.prototype.alwaysCalledWithMatch = function(){};
Function.prototype.alwaysCalledWithNew = function(){};
Function.prototype.alwaysReturned = function(){};
Function.prototype.alwaysThrew = function(){};
Function.prototype.args;
Function.prototype.arguments;
Function.prototype.behaviors;
Function.prototype.callArg = function(){};
Function.prototype.callArgOn = function(){};
Function.prototype.callArgOnWith = function(){};
Function.prototype.callArgWith = function(){};
Function.prototype.callCount;
Function.prototype.callIds;
Function.prototype.called;
Function.prototype.calledAfter = function(){};
Function.prototype.calledBefore = function(){};
Function.prototype.calledOn = function(){};
Function.prototype.calledOnce;
Function.prototype.calledThrice;
Function.prototype.calledTwice;
Function.prototype.calledWith = function(){};
Function.prototype.calledWithExactly = function(){};
Function.prototype.calledWithMatch = function(){};
Function.prototype.calledWithNew = function(){};
Function.prototype.caller;
Function.prototype.callsArg = function(){};
Function.prototype.callsArgAsync = function(){};
Function.prototype.callsArgOn = function(){};
Function.prototype.callsArgOnAsync = function(){};
Function.prototype.callsArgOnWith = function(){};
Function.prototype.callsArgOnWithAsync = function(){};
Function.prototype.callsArgWith = function(){};
Function.prototype.callsArgWithAsync = function(){};
Function.prototype.create = function(){};
Function.prototype.defaultBehavior;
Function.prototype.displayName;
Function.prototype.exceptions;
Function.prototype.firstCall;
Function.prototype.formatters;
Function.prototype.func;
Function.prototype.getCall = function(){};
Function.prototype.getCalls = function(){};
Function.prototype.id;
Function.prototype.invoke = function(){};
Function.prototype.invokeCallback = function(){};
Function.prototype.isPresent = function(){};
Function.prototype.lastCall;
Function.prototype.length;
Function.prototype.matches = function(){};
Function.prototype.name;
Function.prototype.neverCalledWith = function(){};
Function.prototype.neverCalledWithMatch = function(){};
Function.prototype.notCalled;
Function.prototype.onCall = function(){};
Function.prototype.onFirstCall = function(){};
Function.prototype.onSecondCall = function(){};
Function.prototype.onThirdCall = function(){};
Function.prototype.printf = function(){};
Function.prototype.reset = function(){};
Function.prototype.resetBehavior = function(){};
Function.prototype.restore = function(){};
Function.prototype.returnValues;
Function.prototype.returned = function(){};
Function.prototype.returns = function(){};
Function.prototype.returnsArg = function(){};
Function.prototype.returnsThis = function(){};
Function.prototype.secondCall;
Function.prototype.spyCall;
Function.prototype.thirdCall;
Function.prototype.thisValues;
Function.prototype.threw = function(){};
Function.prototype['throws'] = function(){};
Function.prototype.throwsException = function(){};
Function.prototype.toString = function(){};
Function.prototype.withArgs = function(){};
Function.prototype.yield = function(){};
Function.prototype.yieldOn = function(){};
Function.prototype.yieldTo = function(){};
Function.prototype.yieldToOn = function(){};
Function.prototype.yields = function(){};
Function.prototype.yieldsAsync = function(){};
Function.prototype.yieldsOn = function(){};
Function.prototype.yieldsOnAsync = function(){};
Function.prototype.yieldsTo = function(){};
Function.prototype.yieldsToAsync = function(){};
Function.prototype.yieldsToOn = function(){};
Function.prototype.yieldsToOnAsync = function(){};