browser/devtools/webconsole/test/browser_webconsole_console_trace_duplicates.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:27e58838212c
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 function test() {
6 const TEST_URI = "http://example.com/browser/browser/devtools/webconsole/test/test-bug_939783_console_trace_duplicates.html";
7
8 Task.spawn(runner).then(finishTest);
9
10 function* runner() {
11 const {tab} = yield loadTab("data:text/html;charset=utf8,<p>hello");
12 const hud = yield openConsole(tab);
13
14 content.location = TEST_URI;
15
16 yield waitForMessages({
17 webconsole: hud,
18 messages: [{
19 name: "console.trace output for foo1()",
20 text: "foo1()",
21 repeats: 2,
22 consoleTrace: {
23 file: "test-bug_939783_console_trace_duplicates.html",
24 fn: "foo3()",
25 },
26 }, {
27 name: "console.trace output for foo1b()",
28 text: "foo1b()",
29 consoleTrace: {
30 file: "test-bug_939783_console_trace_duplicates.html",
31 fn: "foo3()",
32 },
33 }],
34 });
35 }
36 }

mercurial