Skip to content

add "short" harness timeout value - #9959

Closed
anthumchris wants to merge 1 commit into
web-platform-tests:masterfrom
anthumchris:short-harness-timeout-option
Closed

anthumchris wants to merge 1 commit into
web-platform-tests:masterfrom
anthumchris:short-harness-timeout-option

Conversation

@anthumchris

@anthumchris anthumchris commented Mar 10, 2018 •

Copy link
Copy Markdown
Member

This would allow tests that explicitly call window.stop() to exit after 2s instead of waiting the full 10s to timeout by adding <meta name="timeout" content="short">. For example, the "short" value could be applied to the tests below:


This change is Reviewable

@ghost

ghost commented Mar 10, 2018 •

Copy link
Copy Markdown

Build PASSED

Started: 2018-03-10 18:46:18
Finished: 2018-03-10 18:52:18

View more information about this build on:

@jgraham

jgraham commented Mar 12, 2018

Copy link
Copy Markdown
Contributor

I'm a bit skeptical of this. I don't think we have any way to know that a test "ought" to time out, so this seems like a workaround for one visible effect of a deeper issue.

@anthumchris

Copy link
Copy Markdown
Member Author

Yes, I see your point. After more experimentation, explicitly calling window.dispatchEvent(new Event('load')) would resume the natural flow of things after calling window.stop(), and test_harness would complete and avoid the timeout.

That's probably a better solution and I'm happy canceling this PR

@anthumchris
anthumchris deleted the short-harness-timeout-option branch March 12, 2018 14:23
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.

3 participants