browser/devtools/webconsole/test/browser_webconsole_console_trace_duplicates.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     5 function test() {
     6   const TEST_URI = "http://example.com/browser/browser/devtools/webconsole/test/test-bug_939783_console_trace_duplicates.html";
     8   Task.spawn(runner).then(finishTest);
    10   function* runner() {
    11     const {tab} = yield loadTab("data:text/html;charset=utf8,<p>hello");
    12     const hud = yield openConsole(tab);
    14     content.location = TEST_URI;
    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