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

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

Issue 185713007: DevTools: Add timestamp support in the console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed apavlov's comments 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
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..4e62621caeb577afe2cb22e3471972a6cb2c7f20 100644
--- a/LayoutTests/inspector-protocol/console/console-timestamp.html
+++ b/LayoutTests/inspector-protocol/console/console-timestamp.html
@@ -25,22 +25,10 @@ function test()
messages.push(payload);
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();
+ InspectorTest.assert(Math.abs(new Date().getTime() - payload.timestamp) < 60000, "Timestamp shouldn't differ very much from current time (one minute interval).");
}
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 | LayoutTests/inspector/console/console-timestamp.html » ('j') | Source/core/inspector/InspectorConsoleAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698