1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-27 02:43:45 +02:00
video.js/test/qunit-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

85 lines
1.5 KiB
JavaScript

// https://github.com/lukeasrodgers/qunit-js-externs/blob/master/qunit-externs.js
/**
* @param {string} name
* @param {Object=} lifecycle
*/
function module(name, lifecycle) {}
/**
* @param {string} title
* @param {number|Function} expected
* @param {Function=} test_func
*/
function test(title, expected, test_func){}
/**
* @param {string} name
* @param {number|Function} expected
* @param {Function=} test_func
*/
function asyncTest(name, expected, test_func){}
/**
* @param {number} amount
*/
function expect(amount){}
/**
* @param {*} state
* @param {string=} message
*/
function ok(state, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function equal(actual, expected, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function notEqual(actual, expected, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function deepEqual(actual, expected, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function notDeepEqual(actual, expected, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function strictEqual(actual, expected, message){}
/**
* @param {*} actual
* @param {*} expected
* @param {string=} message
*/
function notStrictEqual(actual, expected, message){}
/**
* @param {number=} increment
*/
function start(increment){}
/**
* @param {number=} increment
*/
function stop(increment){}