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