mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44
This commit is contained in:
parent
f183d66217
commit
292a12e545
261 changed files with 5513 additions and 966 deletions
|
@ -4,7 +4,8 @@ self.addEventListener('fetch', function(event) {
|
|||
event.waitUntil(async function() {
|
||||
let destination = new URL(url).searchParams.get("dest");
|
||||
var result = "FAIL";
|
||||
if (event.request.destination == destination) {
|
||||
if (event.request.destination == destination ||
|
||||
(event.request.destination == "empty" && destination == "")) {
|
||||
result = "PASS";
|
||||
}
|
||||
let cl = await clients.matchAll({includeUncontrolled: true});
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
self.addEventListener('fetch', function(event) {
|
||||
if (event.request.url.includes('dummy')) {
|
||||
let destination = new URL(event.request.url).searchParams.get("dest");
|
||||
if (event.request.destination == destination) {
|
||||
if (event.request.destination == destination ||
|
||||
(event.request.destination == "empty" && destination == "")) {
|
||||
event.respondWith(fetch(event.request));
|
||||
} else {
|
||||
event.respondWith(Response.error());
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
break;
|
||||
|
||||
case "destination":
|
||||
defaultValue = "";
|
||||
defaultValue = "empty";
|
||||
newValue = "worker";
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue