Bug 1675318 - Part 6: Split up test for bug 1003100 from test_sessionhistory.html, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D96869
This commit is contained in:
Anny Gakhokidze 2020-11-13 23:29:00 +00:00
Родитель 2b9b839a46
Коммит f686ff4de9
4 изменённых файлов: 37 добавлений и 3 удалений

Просмотреть файл

@ -13,8 +13,7 @@
window.location.reload(true);
} else {
opener.ok(true, "Did run history.push");
opener.nextTest();
window.close();
opener.finishTest();
}
}

Просмотреть файл

@ -97,6 +97,7 @@ support-files = file_bug1379762-1.html
[test_session_history_entry_cleanup.html]
[test_fragment_handling_during_load.html]
[test_nested_frames.html]
[test_shiftReload_and_pushState.html]
[test_sibling-matching-parent.html]
[test_sibling-off-domain.html]
[test_triggeringprincipal_frame_nav.html]

Просмотреть файл

@ -74,7 +74,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=
"file_bug462076_2.html", // Dynamic frames when handling onload
"file_bug462076_3.html", // Dynamic frames after onload
// "file_static_and_dynamic_1.html",// Static and dynamic frames and forward-back
"file_shiftReload_and_pushState.html",
"file_scrollRestoration.html",
"file_bug1300461.html",
"file_bug1326251.html",

Просмотреть файл

@ -0,0 +1,35 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=
-->
<head>
<title>Test for Bug 1003100</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="runTest()">
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1003100">Mozilla Bug 1003100</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
var testWindow;
function runTest() {
testWindow = window.open("file_shiftReload_and_pushState.html", "", "width=360,height=480");
testWindow.onunload = function() { }; // to prevent bfcache
}
function finishTest() {
testWindow.close();
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>