Revision 614c1ccac5f885e58444fe74a2aedd120d2ca73f authored by Marcos Cáceres on 21 August 2018, 05:04:44 UTC, committed by GitHub on 21 August 2018, 05:04:44 UTC
1 parent 4797b9c
sw.js
importScripts('/resources/testharness.js')
promise_test((test) => {
return fetch('./sw.js').then((response) => {
return new Promise((resolve, reject) => {
step_timeout(() => {
const entry = performance.getEntriesByName(response.url)[0]
if (!entry) {
reject('no entry: ' + response.url)
}
assert_not_equals(typeof entry.serverTiming,
'undefined',
'An instance of `PerformanceResourceTiming` should have a `serverTiming` attribute in the Service Worker context.')
resolve()
}, 250)
})
})
})
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...