Bug 1342293 - Call expectUncaughtException for each pageError. r=nchevobbe

This commit is contained in:
Tooru Fujisawa 2017-02-25 12:52:33 +09:00
Родитель 71a80300a4
Коммит 00e859d170
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -8,12 +8,6 @@
Cu.import("resource://gre/modules/osfile.jsm", {}); Cu.import("resource://gre/modules/osfile.jsm", {});
add_task(function* () { add_task(function* () {
// On e10s, the exception is triggered in child process
// and is ignored by test harness
if (!Services.appinfo.browserTabsRemoteAutostart) {
expectUncaughtException();
}
let generatedStubs = yield generatePageErrorStubs(); let generatedStubs = yield generatePageErrorStubs();
let repoStubFilePath = getTestFilePath("../stubs/pageError.js"); let repoStubFilePath = getTestFilePath("../stubs/pageError.js");

Просмотреть файл

@ -421,6 +421,13 @@ function* generatePageErrorStubs() {
}); });
}); });
// On e10s, the exception is triggered in child process
// and is ignored by test harness
// expectUncaughtException should be called for each uncaught exception.
if (!Services.appinfo.browserTabsRemoteAutostart) {
expectUncaughtException();
}
yield ContentTask.spawn( yield ContentTask.spawn(
gBrowser.selectedBrowser, gBrowser.selectedBrowser,
[key, code], [key, code],