зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342293 - Call expectUncaughtException for each pageError. r=nchevobbe
This commit is contained in:
Родитель
71a80300a4
Коммит
00e859d170
|
@ -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],
|
||||||
|
|
Загрузка…
Ссылка в новой задаче