Skip to content

Commit

Permalink
HTML: Expect salvegable to be set to false for pagehide test
Browse files Browse the repository at this point in the history
Also rename the manual test.

Part of #11269.
  • Loading branch information
zcorpan committed Jun 1, 2018
1 parent e2fe8bb commit c5ec75c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Expand Up @@ -4,9 +4,12 @@
onpagehide = function() {
onpagehide = null;
setTimeout(function() {
parent.t.done()
parent.t.step_func(function() { assert_unreached('setTimeout survived navigatoin'); })
}, 1000);
}
if (parent.loaded) {
setTimeout(function() { parent.t.done(); }, 2000);
}
onload = function() {
if (!parent.loaded) {
parent.loaded = true;
Expand Down
Expand Up @@ -2,4 +2,4 @@
<title>Document salvagable state after setting pagehide handler</title>
<script>onpagehide = function() {setTimeout(function(){document.body.innerHTML = "PASS"}, 100)}</script>
<p>Click the link below then navigate back to this page. Shortly after returning you should see the text "PASS"</p>
<p><A href="manual-001-1.html">Click here</a>
<p><a href="pagehide-manual-1.html">Click here</a>

0 comments on commit c5ec75c

Please sign in to comment.