Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698