зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256428 P8 Fix wpt unregister-then-register-new-script.https.html to new spec expectations matching blink's tests. r=jdm
This commit is contained in:
Родитель
64b722ad6f
Коммит
5d6c3c72d1
|
@ -103,14 +103,14 @@ async_test(function(t) {
|
|||
return with_iframe(scope);
|
||||
})
|
||||
.then(function(frame) {
|
||||
assert_equals(frame.contentWindow.navigator.serviceWorker.controller.scriptURL,
|
||||
normalizeURL(worker_url),
|
||||
'register() should always abort uninstalling the registration');
|
||||
assert_equals(frame.contentWindow.navigator.serviceWorker.controller,
|
||||
null,
|
||||
'document should not load with a controller');
|
||||
frame.remove();
|
||||
t.done();
|
||||
})
|
||||
.catch(unreached_rejection(t));
|
||||
}, 'Registering a new script URL that 404s does resurrect an ' +
|
||||
}, 'Registering a new script URL that 404s does not resurrect an ' +
|
||||
'unregistered registration');
|
||||
|
||||
async_test(function(t) {
|
||||
|
@ -144,9 +144,9 @@ async_test(function(t) {
|
|||
return with_iframe(scope);
|
||||
})
|
||||
.then(function(frame) {
|
||||
assert_equals(frame.contentWindow.navigator.serviceWorker.controller.scriptURL,
|
||||
normalizeURL(worker_url),
|
||||
'register() should always abort uninstalling the registration');
|
||||
assert_equals(frame.contentWindow.navigator.serviceWorker.controller,
|
||||
null,
|
||||
'document should not load with a controller');
|
||||
frame.remove();
|
||||
return registration.unregister();
|
||||
})
|
||||
|
@ -154,6 +154,6 @@ async_test(function(t) {
|
|||
t.done();
|
||||
})
|
||||
.catch(unreached_rejection(t));
|
||||
}, 'Registering a new script URL that fails to install does resurrect ' +
|
||||
}, 'Registering a new script URL that fails to install does not resurrect ' +
|
||||
'an unregistered registration');
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче