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

Assert relative changes in history.length in same-url.html #48278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonathan-j-lee
Copy link
Contributor

@jonathan-j-lee jonathan-j-lee commented Sep 19, 2024

All browsers except Firefox spuriously fail the precondition in onload because their history includes about:blank (initially loaded by WebDriver), followed by same-url.html. Avoid encoding this implementation detail in the test.

Also, add the test state to each assertion to make failure more informative.

All browsers except Firefox spuriously fail the precondition in
`onload` [0] because their history includes `about:blank` (initially
loaded by WebDriver [1, 2]), followed by `same-url.html`. Avoid encoding
this implementation detail in the test.

Also, add the current state to each assertion to make failure more
informative.

[0]: https://wpt.fyi/results/html/browsers/browsing-the-web/history-traversal/same-url.html?run_id=5145442707046400&run_id=5078811356168192&run_id=5154571592925184&run_id=6326848455966720
[1]: https://www.w3.org/TR/webdriver/#new-window
[2]: https://github.com/web-platform-tests/wpt/blob/3939cbfd/tools/wptrunner/wptrunner/executors/executorwebdriver.py#L811-L818
@jonathan-j-lee jonathan-j-lee marked this pull request as ready for review September 19, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants