haikuwebkit/LayoutTests/fast/history/page-cache-with-opener.html

21 lines
588 B
HTML

<!-- webkit-test-runner [ UsesBackForwardCache=true ] -->
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests that a page that has a window opener goes into the page cache.");
window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.setCanOpenWindows();
window.addEventListener("load", function() {
newWindow = open("resources/page-cache-window-with-opener.html", "one");
otherWindowDocument = newWindow.document;
}, false);
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>