URLPattern: Refactor WPT tests to match URL WPT test structure.
The URL API tests use a data file that is loaded in the the test runner: https://github.com/web-platform-tests/wpt/blob/master/url/resources/urltestdata.json https://github.com/web-platform-tests/wpt/blob/master/url/url-constructor.html Purportedly this helps with other platforms that may want to implement the API maintain test parity by writing their own test runner around the data file. This seems like a good idea since we will likely need to test a polyfill in the future and it could also be used if nodejs adopts the API. This CL is roughly a direct translation of the current test cases. Bug: 1141510 Change-Id: I6cf7dea233fed7751306822738fe86ec3464368e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567178Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: Ben Kelly <wanderview@chromium.org> Cr-Commit-Position: refs/heads/master@{#834725}
Showing
This diff is collapsed.
Please register or sign in to comment