2013-01-13 09:23:22 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Video.js Test Suite</title>
|
|
|
|
|
2013-02-23 06:26:58 +03:00
|
|
|
<!--[if IE]>
|
|
|
|
<script src="https://getfirebug.com/releases/lite/1.4/firebug-lite.js"></script>
|
|
|
|
<!--<![endif]-->
|
|
|
|
|
2013-01-13 09:23:22 +03:00
|
|
|
<!-- QUnit -->
|
2013-12-03 02:34:00 +03:00
|
|
|
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" />
|
|
|
|
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
|
2013-01-13 09:23:22 +03:00
|
|
|
|
|
|
|
<!-- Video.js CSS -->
|
2013-07-20 06:18:39 +03:00
|
|
|
<link rel="stylesheet" href="../build/files/video-js.css" type="text/css">
|
2013-01-13 09:23:22 +03:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function(){
|
2013-02-23 06:26:58 +03:00
|
|
|
|
2013-01-13 09:23:22 +03:00
|
|
|
// ADD NEW TEST FILES HERE
|
2013-04-13 02:51:04 +03:00
|
|
|
window.tests = [
|
2013-06-24 22:47:47 +03:00
|
|
|
'test/unit/test-helpers.js',
|
2013-04-09 23:43:35 +03:00
|
|
|
'test/unit/core-object.js',
|
2013-01-13 09:23:22 +03:00
|
|
|
'test/unit/lib.js',
|
|
|
|
'test/unit/events.js',
|
|
|
|
'test/unit/component.js',
|
2013-01-18 04:33:53 +03:00
|
|
|
'test/unit/mediafaker.js',
|
2013-01-13 09:23:22 +03:00
|
|
|
'test/unit/player.js',
|
|
|
|
'test/unit/core.js',
|
2013-02-04 21:31:53 +03:00
|
|
|
'test/unit/media.html5.js',
|
2013-03-02 01:11:20 +03:00
|
|
|
'test/unit/controls.js',
|
2013-11-27 03:53:23 +03:00
|
|
|
'test/unit/poster.js',
|
2013-08-24 01:05:04 +03:00
|
|
|
'test/unit/plugins.js',
|
|
|
|
'test/unit/flash.js'
|
2013-01-13 09:23:22 +03:00
|
|
|
];
|
2013-02-23 06:26:58 +03:00
|
|
|
|
|
|
|
var projectRoot = '../';
|
2013-01-13 09:23:22 +03:00
|
|
|
var scripts = [];
|
|
|
|
|
2013-04-13 02:51:04 +03:00
|
|
|
window.loadScripts = function(scripts) {
|
|
|
|
for (var i = 0; i < scripts.length; i++) {
|
|
|
|
document.write("<script src='" + projectRoot + scripts[i] + "'><\/script>" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-13 09:23:22 +03:00
|
|
|
// 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) {
|
2013-04-13 02:51:04 +03:00
|
|
|
window.compiled = true;
|
2013-01-13 09:23:22 +03:00
|
|
|
} else {
|
2013-04-13 02:51:04 +03:00
|
|
|
// 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;
|
|
|
|
}
|
2013-01-13 09:23:22 +03:00
|
|
|
|
2013-04-13 02:51:04 +03:00
|
|
|
loadScripts(['build/source-loader.js']);
|
2013-01-13 09:23:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
})()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div>
|
|
|
|
<h1 id="qunit-header">Video.js Test Suite</h1>
|
|
|
|
<h2 id="qunit-banner"></h2>
|
2013-12-03 02:34:00 +03:00
|
|
|
<div id="qunit-testrunner-toolbar"></div>
|
2013-01-13 09:23:22 +03:00
|
|
|
<h2 id="qunit-userAgent"></h2>
|
|
|
|
<ol id="qunit-tests"></ol>
|
|
|
|
<div id="qunit-fixture"></div>
|
|
|
|
</div>
|
2013-04-13 02:51:04 +03:00
|
|
|
|
|
|
|
<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>
|
2013-01-13 09:23:22 +03:00
|
|
|
</body>
|
|
|
|
</html>
|