diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /docshell/test/navigation/test_sessionhistory.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'docshell/test/navigation/test_sessionhistory.html')
-rw-r--r-- | docshell/test/navigation/test_sessionhistory.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/docshell/test/navigation/test_sessionhistory.html b/docshell/test/navigation/test_sessionhistory.html new file mode 100644 index 000000000..452271a41 --- /dev/null +++ b/docshell/test/navigation/test_sessionhistory.html @@ -0,0 +1,68 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id= +--> +<head> + <title>Test for Bug </title> + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> +</head> +<body onload="nextTest()"> +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug </a> +<p id="display"></p> +<div id="content" style="display: none"> + +</div> +<pre id="test"> +<script type="application/javascript"> + +/** Test for Bug **/ + +var testFiles = + [ "file_bug462076_1.html", // Dynamic frames before onload + "file_bug462076_2.html", // Dynamic frames when handling onload + "file_bug462076_3.html", // Dynamic frames after onload + "file_bug508537_1.html", // Dynamic frames and forward-back + "file_document_write_1.html", // Session history + document.write + //"file_static_and_dynamic_1.html",// Static and dynamic frames and forward-back + "file_bug534178.html", // Session history transaction clean-up. + "file_fragment_handling_during_load.html", + "file_nested_frames.html", + "file_shiftReload_and_pushState.html", + "file_scrollRestoration.html", + "file_bug1300461.html" + ]; +var testCount = 0; // Used by the test files. + +SimpleTest.waitForExplicitFinish(); +SimpleTest.requestFlakyTimeout("untriaged"); + +var testWindow; +function nextTest_() { + if (testFiles.length) { + testCount = 0; + testWindow = window.open(testFiles.shift(), "", "width=300,height=300"); + testWindow.onunload = function () { } // to prevent bfcache + } else { + SimpleTest.finish(); + } +} + +// Needed by file_document_write_1.html +window.file_document_write_1_loadCount = 0; +function isTestDynamic() { + var dyn = testWindow.document.getElementById("dynamic"); + is(dyn, null, "Should have gone back to the static page!"); + nextTest(); + testWindow.close(); +} + +function nextTest() { + setTimeout(nextTest_, 0); +} + +</script> +</pre> +</body> +</html> |