Debian Codegraph @

test/startError.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="UTF-8">
5 <title>QUnit Start Error Test Suite</title>
6 <link rel="stylesheet" href="../dist/qunit.css">
7 </head>
8 <body>
9 <div id="qunit"></div>
10 <script src="../dist/qunit.js"></script>
11 <script>
12 var autostartStartError, tooManyStartsError;
13
14 try {
15 QUnit.config.autostart = true;
16 QUnit.start();
17 }
18 catch ( thrownError ) {
19 autostartStartError = thrownError;
20 }
21
22 try {
23 QUnit.start();
24 }
25 catch ( thrownError ) {
26 tooManyStartsError = thrownError;
27 }
28 </script>
29
30 <!-- INTENTIONALLY reload QUnit -->
31 <script src="../dist/qunit.js"></script>
32
33 <script src="startError.js"></script>
34 </body>
35 </html>