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

Side by Side Diff: LayoutTests/inspector/console/console-timestamp.html

Issue 185713007: DevTools: Add timestamp support in the console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make repeat count work 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 function test()
7 {
8 function addMessageWithFixedTimestamp()
9 {
10 var message = new WebInspector.ConsoleMessage(
11 WebInspector.ConsoleMessage.MessageSource.Other,
12 WebInspector.ConsoleMessage.MessageLevel.Log,
13 "PASS",
14 undefined,
15 undefined,
16 undefined,
17 undefined,
18 undefined,
19 undefined,
20 undefined,
21 undefined,
22 1400000000123 / 1000); // 2014-05-13T16:53:20.123Z
23 WebInspector.console.addMessage(message);
24 }
25
26 addMessageWithFixedTimestamp();
27 WebInspector.settings.consoleTimestampsEnabled.set(true);
28 addMessageWithFixedTimestamp();
29 InspectorTest.dumpConsoleMessages();
30 InspectorTest.completeTest();
31 }
32 </script>
33 </head>
34 <body onload="runTest()">
35 <p>
36 Tests the console timestamp setting
37 </p>
38 </body>
39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698