Automatic update from web-platform-testsMake URLSearchParamsIterationSource not snapshot Previously URLSearchParamsIterationSource iterated over a copy of URLSearchParams, but it is specified in the standard as iterating over the live list. Modify it to reference the original URLSearchParams object instead of making a copy. Also add web-platform tests for delete during foreach, and a chromium- specific test for GC of URLSearchParams during iteration. Remove failing expectations. BUG=677322 Change-Id: I8c53fd8dd9863fe1146c5b7849d4f08245b37bc1 Reviewed-on: https://chromium-review.googlesource.com/987839 Reviewed-by: Mike West <mkwst@chromium.org> Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#548363} wpt-commits: 8fa12a570edc5679b9f28b26585a6bd477f0dc16 wpt-pr: 10252 wpt-commits: 8fa12a570edc5679b9f28b26585a6bd477f0dc16 wpt-pr: 10252
These tests are for browsers, but the data for
a-element.html, url-constructor.html, and a-element-xhtml.xhtml
is in urltestdata.json and can be re-used by non-browser implementations.
This file contains a JSON array of comments as strings and test cases as objects.
The keys for each test case are:
base: an absolute URL as a string whose parsing without a base of its own should succeed. This key is always present, and may have a value like"about:blank"wheninputis an absolute URL.input: an URL as a string to be parsed withbaseas its base URL.- Either:
-
failurewith the valuetrue, indicating that parsinginputshould return failure, -
or
href,origin,protocol,username,password,host,hostname,port,pathname,search, andhashwith string values; indicating that parsinginputshould return an URL record and that the getters of each corresponding attribute in that URL’s API should return the corresponding value.The
originkey may be missing. In that case, the API’soriginattribute is not tested.
-