Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML: Expect salvegable to be set to false for pagehide test #11294

Merged
merged 2 commits into from Jun 21, 2018

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Jun 1, 2018

Also rename the manual test.

Part of #11269.


I will report an issue for whatwg/html about this test.

@zcorpan zcorpan force-pushed the zcorpan/unload-pagehide-timeout branch from 290722f to c5ec75c Compare June 1, 2018 11:37
@zcorpan zcorpan requested a review from foolip June 19, 2018 11:43
@@ -4,9 +4,12 @@
onpagehide = function() {
onpagehide = null;
setTimeout(function() {
parent.t.done()
parent.t.step_func(function() { assert_unreached('setTimeout survived navigatoin'); })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent.t.unreached_func('setTimeout survived navigatoin') would be more compact.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clicking will now 404, is that part of the test, or accidental?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not 404, that file was renamed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, there's both pagehide-manual.html and pagehide-manual-1.html.

@zcorpan zcorpan merged commit 939af26 into master Jun 21, 2018
@zcorpan zcorpan deleted the zcorpan/unload-pagehide-timeout branch June 21, 2018 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants