Update web-platform-tests to revision 4333a1d2f109795547fc5e22ebfc8481fa649de7

This commit is contained in:
WPT Sync Bot 2018-06-22 21:05:34 -04:00
parent 728ebcc932
commit 8c46b67f8e
456 changed files with 10561 additions and 5108 deletions

View file

@ -4,7 +4,7 @@
promise_test(async() => {
const text = await (await fetch("/interfaces/fetch.idl")).text();
const referrer_policy = await (await fetch("/interfaces/webappsec-referrer-policy.idl")).text();
const referrer_policy = await (await fetch("/interfaces/referrer-policy.idl")).text();
const idl_array = new IdlArray();
idl_array.add_idls(text);
idl_array.add_untested_idls("[Exposed=(Window,Worker)] interface AbortSignal {};");

View file

@ -0,0 +1,20 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
promise_test(async () => {
const idl = await fetch('/interfaces/cors-rfc1918.idl').then(r => r.text());
const html = await fetch('/interfaces/html.idl').then(r => r.text());
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_idls(idl);
idlArray.add_dependency_idls(html);
idlArray.add_dependency_idls(dom);
const objects = {
Document: ['document'],
WorkerGlobalScope: ['self'],
};
idlArray.add_objects(objects);
idlArray.test();
}, 'Test CORS RFC1918 interfaces');

View file

@ -9,7 +9,7 @@
.then(j => {
assert_header_equals(j.header, {
"cause": undefined,
"destination": "\"\"",
"destination": "",
"target": "subresource",
"site": "same-origin"
});
@ -22,7 +22,7 @@
.then(j => {
assert_header_equals(j.header, {
"cause": undefined,
"destination": "\"\"",
"destination": "",
"target": "subresource",
"site": "same-site"
});
@ -35,7 +35,7 @@
.then(j => {
assert_header_equals(j.header, {
"cause": undefined,
"destination": "\"\"",
"destination": "",
"target": "subresource",
"site": "cross-site"
});

View file

@ -2,6 +2,7 @@ function parse_metadata(value) {
let result = {};
value.split(',').forEach(item => {
let parsed = item.trim().split('=');
parsed[1] = parsed[1].trim().replace(/^"|"$/g, '');
result[parsed[0]] = parsed[1];
});
return result;