зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1189661 - either of active or waiting can be valid. r=bkelly
Update wpt expectation data. --HG-- extra : commitid : 7J4o18ypDL6 extra : rebase_source : 3395d0a21d9001bc4d31a8dc264e9f5ba58b757f
This commit is contained in:
Родитель
d55fa6061d
Коммит
57a800ee54
|
@ -1,6 +0,0 @@
|
|||
[waiting.https.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[waiting is set]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -26,16 +26,19 @@ async_test(function(t) {
|
|||
.then(function() {
|
||||
var controller = frame.contentWindow.navigator.serviceWorker.controller;
|
||||
assert_equals(controller, null);
|
||||
assert_equals(registration.active, null);
|
||||
assert_equals(registration.waiting.scriptURL, normalizeURL(url));
|
||||
// Nothing in the spec prohibits a worker from going to active
|
||||
// immediately.
|
||||
// Step 26 of the [[Install]] algorithm
|
||||
// "If registration's waiting worker waitingWorker is not null and
|
||||
// waitingWorker's skip waiting flag is not set, invoke Activate
|
||||
// algorithm, or its equivalent, with registration as its argument."
|
||||
var w = registration.waiting || registration.active;
|
||||
assert_equals(w.scriptURL, normalizeURL(url));
|
||||
assert_equals(registration.installing, null);
|
||||
|
||||
// FIXME: Add a test for a frame created after installation.
|
||||
// Should the existing frame ("frame") block activation?
|
||||
})
|
||||
.then(function() {
|
||||
frame.remove();
|
||||
return service_worker_unregister_and_done(t, scope);
|
||||
});
|
||||
}, 'waiting is set');
|
||||
}, 'waiting or active is set');
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче