browser/devtools/webconsole/test/browser_webconsole_console_trace_duplicates.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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