Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assert relative changes in
history.length
in same-url.html
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
- Loading branch information