| <html> |
| <head> |
| <script src="resources/sw-test-pre.js"></script> |
| </head> |
| <body> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.setShouldLogDownloadCallbacks(true); |
| testRunner.setShouldLogDownloadSize(true); |
| testRunner.waitUntilDownloadFinished(); |
| testRunner.setShouldDownloadUndisplayableMIMETypes(true); |
| } |
| |
| async function doTest() |
| { |
| await interceptedFrame("resources/service-worker-download-worker.js", "/workers/service/resources/"); |
| window.location = "/workers/service/resources/download-body"; |
| } |
| doTest(); |
| </script> |
| </body> |
| </html> |