mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
merge from dev
This commit is contained in:
parent
d96250df7f
commit
bcfee41a57
318 changed files with 54424 additions and 6419 deletions
26
dashboard-ui/bower_components/jquery/external/qunit-assert-step/qunit-assert-step.js
vendored
Normal file
26
dashboard-ui/bower_components/jquery/external/qunit-assert-step/qunit-assert-step.js
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
QUnit.extend( QUnit.assert, {
|
||||
|
||||
/**
|
||||
* Check the sequence/order
|
||||
*
|
||||
* @example test('Example unit test', function(assert) { assert.step(1); setTimeout(function () { assert.step(3); start(); }, 100); assert.step(2); stop(); });
|
||||
* @param Number expected The excepted step within the test()
|
||||
* @param String message (optional)
|
||||
*/
|
||||
step: function (expected, message) {
|
||||
// increment internal step counter.
|
||||
QUnit.config.current.step++;
|
||||
if (typeof message === "undefined") {
|
||||
message = "step " + expected;
|
||||
}
|
||||
var actual = QUnit.config.current.step;
|
||||
QUnit.push(QUnit.equiv(actual, expected), actual, expected, message);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Reset the step counter for every test()
|
||||
*/
|
||||
QUnit.testStart(function () {
|
||||
QUnit.config.current.step = 0;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue