mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
42
node_modules/mpd-parser/test/stringToMpdXml.test.js
generated
vendored
42
node_modules/mpd-parser/test/stringToMpdXml.test.js
generated
vendored
|
@ -1,21 +1,21 @@
|
|||
import { stringToMpdXml } from '../src/stringToMpdXml';
|
||||
import errors from '../src/errors';
|
||||
import QUnit from 'qunit';
|
||||
|
||||
QUnit.module('stringToMpdXml');
|
||||
|
||||
QUnit.test('simple mpd', function(assert) {
|
||||
assert.deepEqual(stringToMpdXml('<MPD></MPD>').tagName, 'MPD');
|
||||
});
|
||||
|
||||
QUnit.test('invalid xml', function(assert) {
|
||||
assert.throws(() => stringToMpdXml('<test'), new RegExp(errors.DASH_INVALID_XML));
|
||||
});
|
||||
|
||||
QUnit.test('invalid manifest', function(assert) {
|
||||
assert.throws(() => stringToMpdXml('<test>'), new RegExp(errors.DASH_INVALID_XML));
|
||||
});
|
||||
|
||||
QUnit.test('empty manifest', function(assert) {
|
||||
assert.throws(() => stringToMpdXml(''), new RegExp(errors.DASH_EMPTY_MANIFEST));
|
||||
});
|
||||
import { stringToMpdXml } from '../src/stringToMpdXml';
|
||||
import errors from '../src/errors';
|
||||
import QUnit from 'qunit';
|
||||
|
||||
QUnit.module('stringToMpdXml');
|
||||
|
||||
QUnit.test('simple mpd', function(assert) {
|
||||
assert.deepEqual(stringToMpdXml('<MPD></MPD>').tagName, 'MPD');
|
||||
});
|
||||
|
||||
QUnit.test('invalid xml', function(assert) {
|
||||
assert.throws(() => stringToMpdXml('<test'), new RegExp(errors.DASH_INVALID_XML));
|
||||
});
|
||||
|
||||
QUnit.test('invalid manifest', function(assert) {
|
||||
assert.throws(() => stringToMpdXml('<test>'), new RegExp(errors.DASH_INVALID_XML));
|
||||
});
|
||||
|
||||
QUnit.test('empty manifest', function(assert) {
|
||||
assert.throws(() => stringToMpdXml(''), new RegExp(errors.DASH_EMPTY_MANIFEST));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue