Skip to content

Commit

Permalink
Bug 1504108 [wpt PR 13850] - Request/Response's clone() realm, a=test…
Browse files Browse the repository at this point in the history
…only

Automatic update from web-platform-testsRequest/Response's clone() realm

For whatwg/fetch#825.
--

wpt-commits: e5ba0a871d891aabfe286935d31cbae6b4a850c3
wpt-pr: 13850
  • Loading branch information
annevk authored and moz-wptsync-bot committed Nov 10, 2018
1 parent 0cc6e75 commit 459deb2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testing/web-platform/tests/WebIDL/current-realm.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 459deb2

Please sign in to comment.