blob: 4c467784b830705eb8adaedeb8cef16d753dc82d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// Tests that exceptions thrown by content don't show up twice in the Web
// Console. See Bug 582201.
"use strict";
const TEST_URI =
"http://example.com/browser/devtools/client/webconsole/" +
"test/browser/test-duplicate-error.html";
add_task(async function () {
// On e10s, the exception is triggered in child process
// and is ignored by test harness
if (!Services.appinfo.browserTabsRemoteAutostart) {
expectUncaughtException();
}
const hud = await openNewTabAndConsole(TEST_URI);
await waitFor(() => findErrorMessage(hud, "fooDuplicateError1"));
const errorMessages = hud.ui.outputNode.querySelectorAll(".message.error");
is(
errorMessages.length,
1,
"There's only one error message for fooDuplicateError1"
);
is(
errorMessages[0].querySelector(".message-repeats"),
null,
"There is no repeat bubble on the error message"
);
});
|