|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <!-- The bug number is pulled from the test URL --> |
|
5 <title>JSD Test for Bug AUTOFILLED</title> |
|
6 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
8 <script type="application/javascript" src="jsd-test.js"></script> |
|
9 <script type="application/javascript"> |
|
10 var BUG = 638178; |
|
11 var TEST_SCRIPT = "test-bug638178-execlines.js"; |
|
12 document.getElementsByTagName("title")[0].innerHTML = "JSD Test for Bug " + BUG; |
|
13 |
|
14 SimpleTest.waitForExplicitFinish(); |
|
15 |
|
16 function runTest() { |
|
17 console.log("start of runTest, loading script"); |
|
18 loadScript(TEST_SCRIPT, document.getElementById("test")); |
|
19 console.log("end of runTest"); |
|
20 } |
|
21 |
|
22 function setupTest() { |
|
23 var buglink = document.getElementById("buglink"); |
|
24 buglink.href = "https://bugzilla.mozilla.org/show_bug.cgi?id=" + BUG; |
|
25 buglink.innerHTML = "Mozilla Bug " + BUG; |
|
26 } |
|
27 </script> |
|
28 </head> |
|
29 <body onLoad='setupTest(); setupJSD();'> |
|
30 |
|
31 <a id="buglink" target="_blank"></a> |
|
32 <p id="display"></p> |
|
33 |
|
34 <div id="content" style="display: none"> |
|
35 <pre id='test'> |
|
36 </pre> |
|
37 </div> |
|
38 |
|
39 <div id='test-output'> |
|
40 </div> |
|
41 |
|
42 </body> |
|
43 </html> |