mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1069490 - Part 4: Update tests. r=past
This commit is contained in:
parent
6b5f563b51
commit
722e0bf402
@ -33,10 +33,10 @@ function test() {
|
||||
|
||||
// The expected stack trace object.
|
||||
let stacktrace = [
|
||||
{ filename: TEST_URI, functionName: "window.foobar585956c", language: 2, lineNumber: 9 },
|
||||
{ filename: TEST_URI, functionName: "foobar585956b", language: 2, lineNumber: 14 },
|
||||
{ filename: TEST_URI, functionName: "foobar585956a", language: 2, lineNumber: 18 },
|
||||
{ filename: TEST_URI, functionName: "", language: 2, lineNumber: 21 }
|
||||
{ columnNumber: 2, filename: TEST_URI, functionName: "window.foobar585956c", language: 2, lineNumber: 9 },
|
||||
{ columnNumber: 9, filename: TEST_URI, functionName: "foobar585956b", language: 2, lineNumber: 14 },
|
||||
{ columnNumber: 9, filename: TEST_URI, functionName: "foobar585956a", language: 2, lineNumber: 18 },
|
||||
{ columnNumber: 0, filename: TEST_URI, functionName: "", language: 2, lineNumber: 21 }
|
||||
];
|
||||
|
||||
ok(obj._stacktrace, "found stacktrace object");
|
||||
|
@ -13,12 +13,22 @@ function test() {
|
||||
|
||||
content.location = TEST_URI;
|
||||
|
||||
// NB: Now that stack frames include a column number multiple invocations
|
||||
// on the same line are considered unique. ie:
|
||||
// |foo(); foo();|
|
||||
// will generate two distinct trace entries.
|
||||
yield waitForMessages({
|
||||
webconsole: hud,
|
||||
messages: [{
|
||||
name: "console.trace output for foo1()",
|
||||
text: "foo1()",
|
||||
repeats: 2,
|
||||
consoleTrace: {
|
||||
file: "test-bug_939783_console_trace_duplicates.html",
|
||||
fn: "foo3()",
|
||||
},
|
||||
}, {
|
||||
name: "console.trace output for foo1()",
|
||||
text: "foo1()",
|
||||
consoleTrace: {
|
||||
file: "test-bug_939783_console_trace_duplicates.html",
|
||||
fn: "foo3()",
|
||||
|
@ -174,10 +174,10 @@ function testConsoleGroup(aMessageObject) {
|
||||
function startTraceTest() {
|
||||
gLevel = "trace";
|
||||
gArgs = [
|
||||
{filename: TEST_URI, functionName: "window.foobar585956c", language: 2, lineNumber: 6},
|
||||
{filename: TEST_URI, functionName: "foobar585956b", language: 2, lineNumber: 11},
|
||||
{filename: TEST_URI, functionName: "foobar585956a", language: 2, lineNumber: 15},
|
||||
{filename: TEST_URI, functionName: "onclick", language: 2, lineNumber: 1}
|
||||
{columnNumber: 8, filename: TEST_URI, functionName: "window.foobar585956c", language: 2, lineNumber: 6},
|
||||
{columnNumber: 15, filename: TEST_URI, functionName: "foobar585956b", language: 2, lineNumber: 11},
|
||||
{columnNumber: 15, filename: TEST_URI, functionName: "foobar585956a", language: 2, lineNumber: 15},
|
||||
{columnNumber: 0, filename: TEST_URI, functionName: "onclick", language: 2, lineNumber: 1}
|
||||
];
|
||||
|
||||
let button = gWindow.document.getElementById("test-trace");
|
||||
|
Loading…
Reference in New Issue
Block a user