| OLD | NEW |
| (Empty) |
| 1 CONSOLE MESSAGE: line 65: --normal SW-- | |
| 2 disable() rejected with: AbortError: Failed to enable or disable navigation prel
oad: The service worker script does not have a valid Navigation Preload Origin T
rial token. | |
| 3 enable() rejected with: AbortError: Failed to enable or disable navigation prelo
ad: The service worker script does not have a valid Navigation Preload Origin Tr
ial token. | |
| 4 getState() resolved with: {"enabled":false,"headerValue":"true"} | |
| 5 setHeaderValue() rejected with: AbortError: Failed to set navigation preload hea
der: The service worker script does not have a valid Navigation Preload Origin T
rial token. | |
| 6 log from SW | |
| 7 Activate event handler | |
| 8 registration.navigationPreload not found | |
| 9 Fetch event handler | |
| 10 event.preloadResponse not found | |
| 11 | |
| 12 CONSOLE MESSAGE: line 76: --Origin-Trial enabled SW-- | |
| 13 disable() resolved with: undefined | |
| 14 enable() resolved with: undefined | |
| 15 getState() resolved with: {"enabled":true,"headerValue":"world"} | |
| 16 setHeaderValue() resolved with: undefined | |
| 17 log from SW | |
| 18 Activate event handler | |
| 19 disable() resolved with: undefined | |
| 20 enable() resolved with: undefined | |
| 21 getState() resolved with: {"enabled":true,"headerValue":"true"} | |
| 22 setHeaderValue() resolved with: undefined | |
| 23 Fetch event handler | |
| 24 event.preloadResponse resolved with: [object Response] | |
| 25 Text of preloadResponse: [Service-Worker-Navigation-Preload header set: hello] | |
| 26 | |
| 27 This is a testharness.js-based test. | |
| 28 PASS Calling Navigation preload related methods for normal SW. | |
| 29 PASS Calling Navigation preload related methods for Origin-Trial enabled SW. | |
| 30 Harness: the test ran to completion. | |
| 31 | |
| OLD | NEW |