| Index: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
|
| index b0046dd65d25d41127f1ed741c75b31ed54026de..3e76c91f46233a55f246d940c9b31ae0356061e7 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
|
| @@ -6,19 +6,17 @@ function print(text)
|
| output.appendChild(div);
|
| }
|
|
|
| -function dumpConsoleMessageArgumentCounts()
|
| +function dumpConsoleMessageCounts()
|
| {
|
| - var consoleMessageArgumentCounts = window.internals.consoleMessageArgumentCounts(document);
|
| - if (consoleMessageArgumentCounts.length === 3)
|
| + var consoleMessageCount = window.internals.numberOfConsoleMessages(document);
|
| + if (consoleMessageCount === 3)
|
| print("PASSED: found argument counts for 3 messages");
|
| else
|
| - print("FAILED: unexpected number of messages: " + consoleMessageArgumentCounts.length);
|
| + print("FAILED: unexpected number of messages: " + consoleMessageCount);
|
|
|
| - for (var i = 0; i < consoleMessageArgumentCounts.length; i++) {
|
| - var count = consoleMessageArgumentCounts[i];
|
| - if (count == 0)
|
| - print("PASSED: message #" + i + " has no arguments.");
|
| - else
|
| - print("FAILED: message #" + i + " has " + count + " arguments.");
|
| - }
|
| + var consoleMessageWithArgumentsCount = window.internals.numberOfConsoleMessagesWithArguments(document);
|
| + if (consoleMessageWithArgumentsCount === 0)
|
| + print("PASSED: no messages with arguments");
|
| + else
|
| + print("FAILED: unexpected number of messages with arguments: " + consoleMessageWithArgumentsCount);
|
| }
|
|
|