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:
Anne van Kesteren 2018-11-09 16:58:24 +00:00 коммит произвёл moz-wptsync-bot
Родитель 0cc6e7567d
Коммит 459deb257e
1 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -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"],