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

Unified Diff: LayoutTests/inspector-protocol/console/console-timestamp.html

Issue 211023002: DevTools: Remove event Console.messageRepeatCountUpdated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix inspector-protocol/console/console-timestamp.html Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/core/inspector/ConsoleMessage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector-protocol/console/console-timestamp.html
diff --git a/LayoutTests/inspector-protocol/console/console-timestamp.html b/LayoutTests/inspector-protocol/console/console-timestamp.html
index 8876cd6b3336716e0ba0f2ec8335852023ed44f3..c1c1763826887d8208b8e2863d300975c31b865f 100644
--- a/LayoutTests/inspector-protocol/console/console-timestamp.html
+++ b/LayoutTests/inspector-protocol/console/console-timestamp.html
@@ -5,13 +5,6 @@
function test()
{
- InspectorTest.assert = function(result, message)
- {
- if (!result) {
- InspectorTest.log("FAIL: " + message);
- InspectorTest.completeTest();
- }
- };
var messages = [];
@@ -26,21 +19,11 @@ function test()
InspectorTest.assert(payload.timestamp, "No timestamp found in message.");
InspectorTest.assert(Math.abs(new Date().getTime() / 1000 - payload.timestamp) < 60, "Timestamp shouldn't differ very much from current time (one minute interval).");
- }
-
- function messageRepeatCountUpdated(data)
- {
- InspectorTest.assert(data.params.timestamp, "No timestamp found on repeat count update.");
-
- var updatedTimestamp = data.params.timestamp;
-
- InspectorTest.assert(updatedTimestamp >= messages[messages.length - 1].timestamp, "Timestamp shouldn't decrease over time.");
-
- InspectorTest.completeTest();
+ if (messages.length === 3)
+ InspectorTest.completeTest();
}
InspectorTest.eventHandler["Console.messageAdded"] = messageAdded;
- InspectorTest.eventHandler["Console.messageRepeatCountUpdated"] = messageRepeatCountUpdated;
InspectorTest.sendCommand("Console.enable", {});
InspectorTest.sendCommand("Runtime.evaluate", { expression: "console.log('testUnique'); for (var i = 0; i < 2; ++i) console.log('testDouble');" });
« no previous file with comments | « no previous file | Source/core/inspector/ConsoleMessage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698