PageRenderTime 26ms CodeModel.GetById 19ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/parser/htmlparser/tests/mochitest/test_bug599584.html

http://github.com/zpao/v8monkey
HTML | 42 lines | 35 code | 4 blank | 3 comment | 0 complexity | 00f069fd1ac6e136cbd9b6e0f4dfc152 MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<!--
 4https://bugzilla.mozilla.org/show_bug.cgi?id=599584
 5-->
 6<head>
 7  <title>Test for Bug 599584</title>
 8  <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
 9  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11</head>
12<body>
13<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=599584">Mozilla Bug 599584</a>
14<p id="display"></p>
15<div id="content" style="display: none">
16  <iframe src="iframe_bug599584.html"></iframe>
17</div>
18<pre id="test">
19<script class="testbody" type="text/javascript">
20
21/** Test for Bug 599584 **/
22SimpleTest.waitForExplicitFinish();
23var alreadyRan = false;
24
25function startTest() {
26  if (alreadyRan) {
27    // Make the test finish only once when it fails.
28    return;
29  }
30  alreadyRan = true;
31  setTimeout(function () {
32    var iframe = document.getElementsByTagName("iframe")[0];
33    is(iframe.contentWindow.location.search, "", "Should not have navigated with query string.");
34    SimpleTest.finish();
35  }, 1500);
36}
37
38</script>
39</pre>
40</body>
41</html>
42