52 lines
1.4 KiB
HTML
52 lines
1.4 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>pdf.js unit test</title>
|
||
|
|
||
|
<link rel="shortcut icon" type="image/png" href="../../../jasmine/images/jasmine_favicon.png">
|
||
|
<link rel="stylesheet" type="text/css" href="../../../jasmine/lib/jasmine-core/jasmine.css">
|
||
|
|
||
|
<script type="text/javascript" src="../../../jasmine/lib/jasmine-core/jasmine.js"></script>
|
||
|
<script type="text/javascript" src="../../../jasmine/lib/jasmine-core/jasmine-html.js"></script>
|
||
|
|
||
|
<!-- include spec files here... -->
|
||
|
<script type="text/javascript" src="spec/obj_spec.js"></script>
|
||
|
|
||
|
<!-- include source files here... -->
|
||
|
<script type="text/javascript" src="../../src/obj.js"></script>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
'use strict';
|
||
|
|
||
|
(function pdfJsUnitTest() {
|
||
|
var jasmineEnv = jasmine.getEnv();
|
||
|
jasmineEnv.updateInterval = 1000;
|
||
|
|
||
|
var trivialReporter = new jasmine.TrivialReporter();
|
||
|
|
||
|
jasmineEnv.addReporter(trivialReporter);
|
||
|
|
||
|
jasmineEnv.specFilter = function pdfJsUnitTestSpecFilter(spec) {
|
||
|
return trivialReporter.specFilter(spec);
|
||
|
};
|
||
|
|
||
|
var currentWindowOnload = window.onload;
|
||
|
|
||
|
window.onload = function pdfJsUnitTestOnload() {
|
||
|
if (currentWindowOnload) {
|
||
|
currentWindowOnload();
|
||
|
}
|
||
|
execJasmine();
|
||
|
};
|
||
|
|
||
|
function execJasmine() {
|
||
|
jasmineEnv.execute();
|
||
|
}
|
||
|
})();
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|
||
|
|