PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/js/jsd/test/test_bug638178-execlines.html

http://github.com/zpao/v8monkey
HTML | 46 lines | 37 code | 8 blank | 1 comment | 0 complexity | 41946027bb8cc1dfeec05049a38fa008 MD5 | raw file
 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">
10var BUG = 638178;
11var TEST_SCRIPT = "test-bug638178-execlines.js";
12document.getElementsByTagName("title")[0].innerHTML = "JSD Test for Bug " + BUG;
13
14netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
15
16SimpleTest.waitForExplicitFinish();
17
18function runTest() {
19    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
20    console.log("start of runTest, loading script");
21    loadScript(TEST_SCRIPT, document.getElementById("test"));
22    console.log("end of runTest");
23}
24
25function setupTest() {
26    var buglink = document.getElementById("buglink");
27    buglink.href = "https://bugzilla.mozilla.org/show_bug.cgi?id=" + BUG;
28    buglink.innerHTML = "Mozilla Bug " + BUG;
29}
30  </script>
31</head>
32<body onLoad='setupTest(); setupJSD();'>
33
34<a id="buglink" target="_blank"></a>
35<p id="display"></p>
36
37<div id="content" style="display: none">
38  <pre id='test'>
39  </pre>
40</div>
41
42<div id='test-output'>
43</div>
44
45</body>
46</html>