зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1824351 [wpt PR 39177] - URL: constructor only takes strings, a=testonly
Automatic update from web-platform-tests URL: constructor only takes strings -- wpt-commits: 25ba474c8ae377cb0dccabf591f7e73e13bd159f wpt-pr: 39177
This commit is contained in:
Родитель
8a67991263
Коммит
81ab33df3a
|
@ -36,4 +36,11 @@ test(() => {
|
|||
assert_throws_dom("DataCloneError", () => self.structuredClone(new URLSearchParams()));
|
||||
}, "URLSearchParams: no structured serialize/deserialize support");
|
||||
|
||||
test(() => {
|
||||
const url = new URL("about:blank");
|
||||
url.toString = () => { throw 1 };
|
||||
assert_throws_exactly(1, () => new URL(url), "url argument");
|
||||
assert_throws_exactly(1, () => new URL("about:blank", url), "base argument");
|
||||
}, "Constructor only takes strings");
|
||||
|
||||
done();
|
||||
|
|
Загрузка…
Ссылка в новой задаче