1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-26 08:51:09 +02:00

Added compiled tests to test runner.

This commit is contained in:
Steve Heffernan 2013-01-16 20:30:55 -05:00
parent 0b3e240999
commit 1189bbaa95
2 changed files with 31 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module.exports = function(grunt) {
latest:{}
},
qunit: {
all: ['test/index.html'],
all: ['test/index.html', 'test/compiled.html'],
},
watch: {
files: [ "src/**/*.js" ],

30
test/compiled.html Normal file
View File

@ -0,0 +1,30 @@
<!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">
<!-- SOURCE COMPILED WITH TESTS
grunt-contrib-qunit doesn't support query vars, so making this script
so we can automatically run compiled tests too.
(in test/index.html you can add ?compiled to also run compiled tests)
-->
<script src="video.test.js"></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>