Bug 1675318 - Part 2: Split up test for SH + document.write from test_sessionhistory.html, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D96865
This commit is contained in:
Anny Gakhokidze 2020-11-13 23:28:46 +00:00
Родитель a1bc656f1b
Коммит ba48aa0bd7
4 изменённых файлов: 36 добавлений и 3 удалений

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

@ -8,8 +8,7 @@
document.close();
opener.is(history.length, length,
"document.open/close should not change history");
opener.nextTest();
window.close();
opener.finishTest();
}
</script>
</head>

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

@ -93,6 +93,7 @@ skip-if = fission # bug 1666602
skip-if = toolkit == 'android' || fission # RANDOM on android
support-files = file_bug1379762-1.html
[test_dynamic_frame_forward_back.html]
[test_sessionhistory_document_write.html]
[test_sibling-matching-parent.html]
[test_sibling-off-domain.html]
[test_triggeringprincipal_frame_nav.html]

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

@ -73,7 +73,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=
[ "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_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 entry clean-up.
"file_fragment_handling_during_load.html",

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

@ -0,0 +1,34 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=
-->
<head>
<title>Test for Session history + document.write</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body onload="runTest()">
<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_document_write_1.html", "", "width=360,height=480");
testWindow.onunload = function() { }; // to prevent bfcache
}
function finishTest() {
testWindow.close();
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>