2013-01-13 09:23:22 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Video.js Test Suite</title>
|
|
|
|
|
|
|
|
<!-- QUnit -->
|
|
|
|
<link rel="stylesheet" href="../test/qunit/qunit/qunit.css" />
|
|
|
|
<script src="../test/qunit/qunit/qunit.js"></script>
|
|
|
|
|
|
|
|
<!-- Video.js CSS -->
|
|
|
|
<link rel="stylesheet" href="../src/css/video-js.css" type="text/css">
|
|
|
|
|
|
|
|
<!-- GENERATED LIST OF SOURCE FILES -->
|
|
|
|
<script src="../dist/sourcelist.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function(){
|
|
|
|
var root = '../';
|
|
|
|
// ADD NEW TEST FILES HERE
|
|
|
|
var tests = [
|
|
|
|
'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',
|
|
|
|
'test/unit/media.html5.js'
|
|
|
|
];
|
2013-01-19 04:30:35 +03:00
|
|
|
var compiledTests = "dist/test.video.js";
|
2013-01-13 09:23:22 +03:00
|
|
|
var scripts = [];
|
|
|
|
|
|
|
|
// 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) {
|
|
|
|
scripts.push(compiledTests);
|
|
|
|
} else {
|
|
|
|
// sourcelist is loaded by sourcelist.js
|
|
|
|
// which is built by `grunt build` or `grunt watch`
|
|
|
|
scripts = scripts.concat(sourcelist,tests);
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var i = 0; i < scripts.length; i++) {
|
|
|
|
document.write( "<script src='" + root + scripts[i] + "'><\/script>" );
|
|
|
|
}
|
|
|
|
|
|
|
|
})()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div>
|
|
|
|
<h1 id="qunit-header">Video.js Test Suite</h1>
|
|
|
|
<h2 id="qunit-banner"></h2>
|
|
|
|
<h2 id="qunit-userAgent"></h2>
|
|
|
|
<ol id="qunit-tests"></ol>
|
|
|
|
<div id="qunit-fixture"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|