1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00
video.js/test/index.html

98 lines
2.8 KiB
HTML
Raw Normal View History

2013-01-13 09:23:22 +03:00
<!DOCTYPE HTML>
<html>
<head>
<title>Video.js Test Suite</title>
<!-- Video.js CSS -->
<link rel="stylesheet" href="../build/files/video-js.css" type="text/css">
Better error handling. closes #1197 Squashed commit of the following: commit 81d785980d3f3e4c1025f7b421f0ecb7320469f1 Author: Steve Heffernan <steve@zencoder.com> Date: Mon May 12 12:53:59 2014 -0700 Removed unneeded comments commit c7ad7322e49df9cb22665692dbfe615dfa44758f Author: Steve Heffernan <steve@zencoder.com> Date: Fri May 9 14:29:31 2014 -0700 Addressed comments in #1191 Now clearing errors on loadstart events. Added some default error messages. commit a742239d0e799fa6a5fee056cc37b3c2e3ab4510 Author: Steve Heffernan <steve@zencoder.com> Date: Wed May 7 15:38:31 2014 -0700 Fixed the error display to hide by default commit 561c3f844956db6f532cae8ed81a86cc39b10db1 Author: Steve Heffernan <steve@zencoder.com> Date: Mon May 5 10:44:47 2014 -0700 Added support for displaying a message for the error. commit 22142078427ead85548c4755bf1943a0a07b22b4 Author: Steve Heffernan <steve@zencoder.com> Date: Fri May 2 17:18:22 2014 -0700 Updated spinner to hide on all errors commit 95d7e7027467cf96b14db6692d93c7c7f41c5810 Author: Steve Heffernan <steve@zencoder.com> Date: Fri May 2 15:37:44 2014 -0700 Exported ErrorDisplay commit 11ca9cdd8db4d1559f5d1908c4e67be32ca7a25e Author: Steve Heffernan <steve@zencoder.com> Date: Fri May 2 15:35:46 2014 -0700 Updated flash tech to support new errors commit 56cbe66f4233e54f13550367590864102f5de0fe Author: Steve Heffernan <steve@zencoder.com> Date: Fri May 2 13:06:49 2014 -0700 Started on better error handling and displaying in the UI when an error has occurred. commit 740014c57b264079cf4084965a9384b49a7c0f64 Author: Steve Heffernan <steve@zencoder.com> Date: Wed Apr 30 16:11:33 2014 -0700 Added better global log/error/warn functions. Added sinon.js for stubs in tests. Updated grunt version to satisfy peer dependency warning.
2014-05-13 03:08:48 +03:00
<!-- Sinon -->
<script src="../node_modules/sinon/pkg/sinon.js"></script>
<script src="../node_modules/sinon/pkg/sinon-ie.js"></script>
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
<script type="text/javascript">
(function(){
2013-01-13 09:23:22 +03:00
// ADD NEW TEST FILES HERE
window.tests = [
2013-06-24 22:47:47 +03:00
'test/unit/test-helpers.js',
'test/unit/core-object.js',
2013-01-13 09:23:22 +03:00
'test/unit/lib.js',
'test/unit/util.js',
2013-01-13 09:23:22 +03:00
'test/unit/events.js',
'test/unit/component.js',
'test/unit/button.js',
'test/unit/mediafaker.js',
2013-01-13 09:23:22 +03:00
'test/unit/player.js',
'test/unit/core.js',
'test/unit/media.js',
2013-02-04 21:31:53 +03:00
'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/tracks.js',
'test/unit/tracks/text-track.js',
'test/unit/tracks/text-track-list.js',
'test/unit/tracks/text-track-cue-list.js',
'test/unit/tracks/text-track-controls.js',
'test/unit/tracks/text-track-settings.js'
2013-01-13 09:23:22 +03:00
];
var projectRoot = '../';
2013-01-13 09:23:22 +03:00
var scripts = [];
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) {
window.compiled = true;
2013-01-13 09:23:22 +03:00
} 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;
}
2013-01-13 09:23:22 +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>
<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>