michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: function test() { michael@0: const TEST_URI = "http://example.com/browser/browser/devtools/webconsole/test/test-bug_939783_console_trace_duplicates.html"; michael@0: michael@0: Task.spawn(runner).then(finishTest); michael@0: michael@0: function* runner() { michael@0: const {tab} = yield loadTab("data:text/html;charset=utf8,
hello"); michael@0: const hud = yield openConsole(tab); michael@0: michael@0: content.location = TEST_URI; michael@0: michael@0: yield waitForMessages({ michael@0: webconsole: hud, michael@0: messages: [{ michael@0: name: "console.trace output for foo1()", michael@0: text: "foo1()", michael@0: repeats: 2, michael@0: consoleTrace: { michael@0: file: "test-bug_939783_console_trace_duplicates.html", michael@0: fn: "foo3()", michael@0: }, michael@0: }, { michael@0: name: "console.trace output for foo1b()", michael@0: text: "foo1b()", michael@0: consoleTrace: { michael@0: file: "test-bug_939783_console_trace_duplicates.html", michael@0: fn: "foo3()", michael@0: }, michael@0: }], michael@0: }); michael@0: } michael@0: }