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

Rework keyframes-remove-documentElement-crash.html to not use testharness.js #21052

Merged
merged 2 commits into from Jan 15, 2020

Conversation

stephenmcgruer
Copy link
Contributor

Previously this test would fail when loaded locally as the
testharness.js cleanup code would try to access
document.documentElement, which had been removed. Instead, use the
crashtest support
(https://web-platform-tests.org/writing-tests/crashtest.html).

Fixes #20020

…ness.js

Previously this test would fail when loaded locally as the
testharness.js cleanup code would try to access
document.documentElement, which had been removed. Instead, use the
crashtest support
(https://web-platform-tests.org/writing-tests/crashtest.html).

Fixes #20020
@stephenmcgruer
Copy link
Contributor Author

I'm not 100% sure this is working as I intend. By running with --log-mach=- --log-mach-verbose --webdriver-arg=--verbose and adding some logs to test-wait.js, I find that actually the code in test-wait.js isn't run until after the root has been removed. Which is fine (and I've verified that the rAF also runs first), I'm just sorta surprised about that...

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

LGTM % nit

docs/writing-tests/crashtest.md Show resolved Hide resolved
@stephenmcgruer stephenmcgruer merged commit 12f1eb1 into master Jan 15, 2020
@stephenmcgruer stephenmcgruer deleted the smcgruer/css-animations-crashtest branch January 15, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

css/css-animations/keyframes-remove-documentElement-crash.html causes a harness failure
3 participants