mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -9,7 +9,8 @@ let frame;
|
|||
|
||||
// Set up the service worker and the frame.
|
||||
promise_test(t => {
|
||||
const kScope = 'resources/empty.https.html';
|
||||
const kScope = 'resources/';
|
||||
const kFrame = 'resources/empty.https.html';
|
||||
const kScript = 'resources/fetch-destination-worker-no-load-event.js';
|
||||
return service_worker_unregister_and_register(t, kScript, kScope)
|
||||
.then(registration => {
|
||||
|
@ -20,7 +21,7 @@ promise_test(t => {
|
|||
return wait_for_state(t, registration.installing, 'activated');
|
||||
})
|
||||
.then(() => {
|
||||
return with_iframe(kScope);
|
||||
return with_iframe(kFrame);
|
||||
})
|
||||
.then(f => {
|
||||
frame = f;
|
||||
|
@ -111,7 +112,6 @@ promise_test(async t => {
|
|||
|
||||
// style destination
|
||||
/////////////////////
|
||||
|
||||
// @import - style destination
|
||||
promise_test(async t => {
|
||||
let node = frame.contentWindow.document.createElement("style");
|
||||
|
|
|
@ -2,11 +2,13 @@ self.addEventListener('fetch', function(event) {
|
|||
if (event.request.url.includes('dummy')) {
|
||||
event.waitUntil(async function() {
|
||||
let destination = new URL(event.request.url).searchParams.get("dest");
|
||||
let client = await self.clients.get(event.clientId);
|
||||
var result = "FAIL";
|
||||
if (event.request.destination == destination) {
|
||||
client.postMessage("PASS");
|
||||
} else {
|
||||
client.postMessage("FAIL");
|
||||
result = "PASS";
|
||||
}
|
||||
let cl = await clients.matchAll({includeUncontrolled: true});
|
||||
for (i = 0; i < cl.length; i++) {
|
||||
cl[i].postMessage(result);
|
||||
}
|
||||
}())
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
//not equals: cannot guess formData exact value
|
||||
assert_true( bodyAsText.search(expectedTextBody) > -1, "Retrieve and verify request body");
|
||||
});
|
||||
}, "Initialize Request's body with " + bodyType);
|
||||
}, `Initialize Request's body with "${body}", ${bodyType}`);
|
||||
}
|
||||
|
||||
var blob = new Blob(["This is a blob"], {type: "application/octet-binary"});
|
||||
|
@ -56,6 +56,7 @@
|
|||
checkRequestInit(blob, "application/octet-binary", "This is a blob");
|
||||
checkRequestInit(formaData, "multipart/form-data", "name=\"name\"\r\n\r\nvalue");
|
||||
checkRequestInit(usvString, "text/plain;charset=UTF-8", "This is a USVString");
|
||||
checkRequestInit({toString: () => "hi!"}, "text/plain;charset=UTF-8", "hi!");
|
||||
|
||||
// Ensure test does not time out in case of missing URLSearchParams support.
|
||||
if (window.URLSearchParams) {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
"referrer" : "about:client",
|
||||
"referrerPolicy" : "",
|
||||
"mode" : "cors",
|
||||
"credentials" : "omit",
|
||||
"credentials" : "same-origin",
|
||||
"cache" : "default",
|
||||
"redirect" : "follow",
|
||||
"integrity" : "",
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
break;
|
||||
|
||||
case "credentials":
|
||||
defaultValue = "omit";
|
||||
defaultValue = "same-origin";
|
||||
newValue = "cors";
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue