Files
cocos4/test/qunit/lib/qunit-runner.html
T

47 lines
1.4 KiB
HTML

<!--
This file is generated by scripts
qunit references:
http://qunitjs.com/cookbook/
http://qunitjs.com/intro/
http://api.qunitjs.com/
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><%=title%></title>
<!-- Load local QUnit. -->
<link rel="stylesheet" href="../test/qunit/lib/qunit.css" media="screen">
<script src="../test/qunit/lib/qunit.js"></script>
<script src="../test/qunit/lib/qunit-assert-close.js"></script>
<script src="../test/qunit/lib/assert-deep-close.js"></script>
<script src="../test/qunit/lib/qunit-assert-callback.js"></script>
<script src="../test/qunit/lib/qunit-large-module.js"></script>
<script>
var isPhantomJS = window.navigator.userAgent.indexOf('PhantomJS') !== -1;
if (isPhantomJS) {
QUnit.config.notrycatch = true;
window.onerror = function (msg, url, line, column, error) {
if (error) {
console.error(error.stack);
}
else {
console.error(msg + '.\n' + url + ':' + line);
}
};
// polyfill
var video = document.createElement("video");
video.constructor.prototype.canPlayType = function () { return ''; };
}
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<!-- Load libs and tests. -->
<%=scripts%>
</body>
</html>