зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134224 - onerror for test_bug1132395.html, r=ehsan
This commit is contained in:
Родитель
b65cba6328
Коммит
6b856c6ad5
|
@ -16,7 +16,6 @@
|
|||
// This test is full of dummy debug messages. This is because I need to follow
|
||||
// an hard-to-reproduce timeout failure.
|
||||
|
||||
info("test started");
|
||||
SpecialPowers.pushPrefEnv({ set: [["dom.workers.sharedWorkers.enabled", true]] }, function() {
|
||||
info("test started");
|
||||
var sw = new SharedWorker('bug1132395_sharedWorker.js');
|
||||
|
@ -26,6 +25,11 @@ SpecialPowers.pushPrefEnv({ set: [["dom.workers.sharedWorkers.enabled", true]] }
|
|||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
sw.onerror = function(event) {
|
||||
ok(false, "Failed to create a ServiceWorker");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
info("sw.postmessage called");
|
||||
sw.port.postMessage('go');
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче