mirror of
https://github.com/videojs/video.js.git
synced 2024-11-30 09:06:49 +02:00
f4ce62d4b1
Migrate the timers that manage creating timeupdate and progress events when the tech doesn't support them natively. Now, techs that extend MediaTechController will continue to automatically pick up synthetic playback and buffering events but they're scoped much more closely to the entity that needs them. In addition, time and progress tracking have been moved much earlier into the component initialization which fixes #1414.
93 lines
2.6 KiB
HTML
93 lines
2.6 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Video.js Test Suite</title>
|
|
|
|
<!-- Sinon -->
|
|
<script src="../node_modules/sinon/pkg/sinon.js"></script>
|
|
<script src="../node_modules/sinon/pkg/sinon-ie.js"></script>
|
|
|
|
<!-- QUnit -->
|
|
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" />
|
|
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
|
|
|
|
<!-- Video.js CSS -->
|
|
<link rel="stylesheet" href="../build/files/video-js.css" type="text/css">
|
|
|
|
<script type="text/javascript">
|
|
(function(){
|
|
|
|
// ADD NEW TEST FILES HERE
|
|
window.tests = [
|
|
'test/unit/test-helpers.js',
|
|
'test/unit/core-object.js',
|
|
'test/unit/lib.js',
|
|
'test/unit/util.js',
|
|
'test/unit/events.js',
|
|
'test/unit/component.js',
|
|
'test/unit/button.js',
|
|
'test/unit/mediafaker.js',
|
|
'test/unit/player.js',
|
|
'test/unit/core.js',
|
|
'test/unit/media.js',
|
|
'test/unit/media.html5.js',
|
|
'test/unit/controls.js',
|
|
'test/unit/poster.js',
|
|
'test/unit/plugins.js',
|
|
'test/unit/flash.js',
|
|
'test/unit/api.js',
|
|
'test/unit/menu.js',
|
|
'test/unit/tracks.js'
|
|
];
|
|
|
|
var projectRoot = '../';
|
|
var scripts = [];
|
|
|
|
window.loadScripts = function(scripts) {
|
|
for (var i = 0; i < scripts.length; i++) {
|
|
document.write("<script src='" + projectRoot + scripts[i] + "'><\/script>" );
|
|
}
|
|
}
|
|
|
|
// Choose either the raw source and tests
|
|
// Or the compiled source + tests.
|
|
// Use ?comiled to use the compiled tests
|
|
if (QUnit.urlParams.min || QUnit.urlParams.compiled) {
|
|
window.compiled = true;
|
|
} else {
|
|
// Bunyip/Yeti starts tests after it's done loading which can
|
|
// lead to a double Qunit.start error which reads as
|
|
// "Uncaught Error: pushFailure() assertion outside test"
|
|
if (window.$yetify) {
|
|
QUnit.config.autostart = false;
|
|
}
|
|
|
|
loadScripts(['build/source-loader.js']);
|
|
}
|
|
|
|
})()
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<h1 id="qunit-header">Video.js Test Suite</h1>
|
|
<h2 id="qunit-banner"></h2>
|
|
<div id="qunit-testrunner-toolbar"></div>
|
|
<h2 id="qunit-userAgent"></h2>
|
|
<ol id="qunit-tests"></ol>
|
|
<div id="qunit-fixture"></div>
|
|
</div>
|
|
|
|
<script>
|
|
// Loading tests before the end to give IE time to load vjs before tests
|
|
if (!window.compiled) {
|
|
loadScripts(window.tests);
|
|
} else {
|
|
var compiledTests = "build/files/test.minified.video.js";
|
|
loadScripts([compiledTests]);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|