2 <html lang=
"en" id=
"html">
7 <!-- Karma serves this page from /context.html. Other files are served from /base -->
8 <link rel=
"stylesheet" href=
"/base/external/qunit/qunit.css" />
9 <link rel=
"stylesheet" href=
"/base/test/data/testsuite.css" />
12 <div id=
"qunit"></div>
14 <!-- Start: jQuery Test HTML -->
15 <!-- this iframe is outside the #qunit-fixture so it won't waste time by constantly reloading; the tests are "safe" and clean up after themselves -->
16 <iframe id=
"loadediframe" name=
"loadediframe" style=
"display:none;" src=
"/base/test/data/iframe.html"></iframe>
17 <div id=
"qunit-fixture"></div>
18 <!-- End: jQuery Test HTML -->
20 <!-- Start: Karma boilerplate -->
21 <script src=
"/context.js"></script>
22 <script src=
"/debug.js"></script>
29 <!-- End: Karma boilerplate -->
31 <script src=
"/base/test/data/qunit-fixture.js"></script>
33 // Workaround: Remove call to window.__karma__.loaded()
34 // in favour of calling window.__karma__.start() at window.onload
35 // because tests such as unit/ready.js should run after document ready
36 window
.addEventListener('load', function() {
37 window
.__karma__
.start();
39 // Workaround: https://github.com/karma-runner/karma-qunit/issues/92
40 QUnit
.testStart(function () {
42 document
.getElementById("qunit-fixture").innerHTML
= QUnit
.config
.fixture
;