Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -0,0 +1,2 @@
<!DOCTYPE html>
<title>Current page used as a test helper</title>

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<title>Incumbent page used as a test helper</title>
<iframe src="../current/current.html" id="c"></iframe>
<script>
'use strict';
const current = document.querySelector('#c').contentWindow;
window.createRequest = (...args) => {
return new current.Request(...args);
};
</script>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<title>Request constructor URL parsing, with multiple globals in play</title>
<link rel="help" href="https://fetch.spec.whatwg.org/#dom-request">
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<!-- This is the entry global -->
<iframe src="incumbent/incumbent.html"></iframe>
<script>
'use strict';
const loadPromise = new Promise(resolve => {
window.addEventListener("load", () => resolve());
});
promise_test(() => {
return loadPromise.then(() => {
const req = frames[0].createRequest("url");
assert_equals(req.url, new URL("current/url", location.href).href);
});
}, "should parse the URL relative to the current settings object");
</script>