You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
import QUnit from 'qunit';
|
|
import videojs from 'video.js';
|
|
import window from 'global/window';
|
|
// needed for plugin registration
|
|
import '../src/videojs-http-streaming';
|
|
|
|
QUnit.module('videojs-http-streaming - sanity');
|
|
|
|
QUnit.test('the environment is sane', function(assert) {
|
|
assert.strictEqual(typeof Array.isArray, 'function', 'es5 exists');
|
|
assert.strictEqual(typeof sinon, 'object', 'sinon exists');
|
|
assert.strictEqual(typeof videojs, 'function', 'videojs exists');
|
|
assert.strictEqual(typeof window.MediaSource, 'function', 'MediaSource is a function');
|
|
if (videojs.browser.IE_VERSION) {
|
|
assert.strictEqual(typeof window.URL, 'object', 'URL is an object');
|
|
} else {
|
|
assert.strictEqual(typeof window.URL, 'function', 'URL is a function');
|
|
}
|
|
assert.strictEqual(typeof videojs.Vhs, 'object', 'Vhs is an object');
|
|
assert.strictEqual(
|
|
typeof videojs.VhsSourceHandler,
|
|
'object',
|
|
'VhsSourceHandler is a function'
|
|
);
|
|
assert.strictEqual(typeof videojs.VhsHandler, 'function', 'VhsHandler is a function');
|
|
});
|