зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1504108 [wpt PR 13850] - Request/Response's clone() realm, a=testonly
Automatic update from web-platform-testsRequest/Response's clone() realm For https://github.com/whatwg/fetch/issues/825. -- wpt-commits: e5ba0a871d891aabfe286935d31cbae6b4a850c3 wpt-pr: 13850
This commit is contained in:
Родитель
0cc6e7567d
Коммит
459deb257e
|
@ -43,6 +43,19 @@
|
|||
}, val[0])
|
||||
})
|
||||
|
||||
;["Request", "Response"].forEach(val => {
|
||||
test(() => {
|
||||
const obj = new self[0][val]("about:blank");
|
||||
assert_global(obj);
|
||||
|
||||
const cloneObj = obj.clone();
|
||||
assert_global(cloneObj);
|
||||
|
||||
const involvedCloneObj = self[val].prototype["clone"].call(cloneObj);
|
||||
assert_global(cloneObj);
|
||||
}, val)
|
||||
})
|
||||
|
||||
// Note: these are not [NewObject] and can be cached. But across globals?
|
||||
;[["getElementsByTagName", "x"],
|
||||
["getElementsByTagNameNS", null, "x"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче