CLOSED TREE: TraceMonkey merge head. (a=blockers)
[mozilla-central.git] / docshell / test / navigation / test_sessionhistory.html
blob863265fb426e034df5c8c262cbfbba4b36f1e7f8
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=
5 -->
6 <head>
7 <title>Test for Bug </title>
8 <script type="application/javascript" src="/MochiKit/packed.js"></script>
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body onload="nextTest()">
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script type="application/javascript">
21 /** Test for Bug **/
23 var testFiles =
24 [ "file_bug462076_1.html", // Dynamic frames before onload
25 "file_bug462076_2.html", // Dynamic frames when handling onload
26 "file_bug462076_3.html", // Dynamic frames after onload
27 "file_bug508537_1.html", // Dynamic frames and forward-back
28 "file_document_write_1.html", // Session history + document.write
29 "file_static_and_dynamic_1.html",// Static and dynamic frames and forward-back
30 "file_bug534178.html" // Session history transaction clean-up.
32 var testCount = 0; // Used by the test files.
34 SimpleTest.waitForExplicitFinish();
36 var testWindow;
37 function nextTest_() {
38 if (testFiles.length) {
39 testCount = 0;
40 testWindow = window.open(testFiles.shift(), "", "width=300,height=300");
41 testWindow.onunload = function () { } //XXX
42 } else {
43 SimpleTest.finish();
47 // Needed by file_document_write_1.html
48 function isTestDynamic() {
49 var dyn = testWindow.document.getElementById("dynamic");
50 is(dyn, null, "Should have gone back to the static page!");
51 nextTest();
52 testWindow.close();
55 function nextTest() {
56 setTimeout(nextTest_, 1000);
59 </script>
60 </pre>
61 </body>
62 </html>