mirror of
https://github.com/videojs/video.js.git
synced 2024-11-26 08:51:09 +02:00
60 lines
1.5 KiB
HTML
60 lines
1.5 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Video.js Test Suite</title>
|
|
|
|
<!-- 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">
|
|
|
|
<!-- LIB COMPILED WITH NOT COMPILED TESTS
|
|
Check publicly available APIs against compiled lib
|
|
-->
|
|
<script type="text/javascript">
|
|
|
|
// Test AMD Support
|
|
// window.define = function(a, b){
|
|
// console.log(a, b);
|
|
// };
|
|
// define.amd = true;
|
|
|
|
// Test CJS Support
|
|
// Have to remove qunit and tests to because module becomes a function
|
|
// window.module = window.exports = {};
|
|
// window.module.exports = {};
|
|
|
|
(function(){
|
|
|
|
// ADD NEW TEST FILES HERE
|
|
var tests = [
|
|
'test/unit/test-helpers.js',
|
|
'test/unit/api.js'
|
|
];
|
|
var projectRoot = '../';
|
|
var scripts = [];
|
|
|
|
scripts = scripts.concat(['build/files/minified.video.js'], tests);
|
|
|
|
for (var i = 0; i < scripts.length; i++) {
|
|
document.write( "<script src='" + projectRoot + scripts[i] + "'><\/script>" );
|
|
}
|
|
|
|
})()
|
|
</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>
|
|
</body>
|
|
</html>
|