Commit a1bc6550 authored by Nicolas Pena's avatar Nicolas Pena Committed by Commit Bot

Fix resource-timing.https.html test

This CL changes resource-timing-worker.js to use a generated response.
This means Chrome no longer passes the test.

Change-Id: Ib983e4fba9e81ddbee7f9572b6a06b3c1825577a
Reviewed-on: https://chromium-review.googlesource.com/1050383
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: default avatarTimothy Dresser <tdresser@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556964}
parent 80834558
...@@ -4634,6 +4634,9 @@ crbug.com/800745 [ Linux ] virtual/gpu/fast/canvas/canvas-composite-video.html [ ...@@ -4634,6 +4634,9 @@ crbug.com/800745 [ Linux ] virtual/gpu/fast/canvas/canvas-composite-video.html [
crbug.com/832274 [ Linux ] fast/forms/search/search-appearance-basic.html [ Pass Failure ] crbug.com/832274 [ Linux ] fast/forms/search/search-appearance-basic.html [ Pass Failure ]
crbug.com/840881 external/wpt/service-workers/service-worker/resource-timing.https.html [ Failure ]
crbug.com/840881 virtual/outofblink-cors/external/wpt/service-workers/service-worker/resource-timing.https.html [ Failure ]
# Sheriff 2018-04-12 # Sheriff 2018-04-12
crbug.com/831993 [ Linux ] virtual/gpu-rasterization/images/cross-fade-overflow-position.html [ Pass Timeout ] crbug.com/831993 [ Linux ] virtual/gpu-rasterization/images/cross-fade-overflow-position.html [ Pass Timeout ]
......
self.addEventListener('fetch', function(event) { self.addEventListener('fetch', function(event) {
if (event.request.url.indexOf('dummy.js') != -1) { if (event.request.url.indexOf('dummy.js') != -1) {
event.respondWith(fetch('empty.js')); event.respondWith(new Promise(resolve => {
} // Slightly delay the response so we ensure we get a non-zero
}); // duration.
setTimeout(_ => resolve(new Response('// Empty javascript')), 50);
}));
}
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment