зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 6f01338ecce9 (bug 1186833) for web platform test bustage
This commit is contained in:
Родитель
d7fb218516
Коммит
425d7f3817
|
@ -0,0 +1,9 @@
|
|||
[register-same-scope-different-script-url.https.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Register then register new script URL]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Register same-scope new script url effect on controller]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -84,17 +84,10 @@ async_test(function(t) {
|
|||
.then(function() {
|
||||
assert_equals(registration.installing, null,
|
||||
'on installed, installing should be null');
|
||||
// Since the registration is not controlling any document, the new
|
||||
// worker can immediately transition to active.
|
||||
if (registration.waiting) {
|
||||
assert_equals(registration.waiting.scriptURL, script2,
|
||||
'on installed, the second script may still be waiting');
|
||||
assert_equals(registration.active.scriptURL, script1,
|
||||
'on installed, the first script may be active');
|
||||
} else {
|
||||
assert_equals(registration.active.scriptURL, script2,
|
||||
'on installed, the second script may be active');
|
||||
}
|
||||
assert_equals(registration.waiting.scriptURL, script2,
|
||||
'on installed, the second script should be waiting');
|
||||
assert_equals(registration.active.scriptURL, script1,
|
||||
'on installed, the first script should be active');
|
||||
return registration.unregister();
|
||||
})
|
||||
.then(function() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче