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

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

Issue 2651843003: DevTools: update console timestamp style (Closed)
Patch Set: nochange Created 3 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 // It is essential that we calculate timezone for this particular moment of time 8 // It is essential that we calculate timezone for this particular moment of time
9 // otherwise the time zone offset could be different because of DST. 9 // otherwise the time zone offset could be different because of DST.
10 var baseDate = Date.parse("2014-05-13T16:53:20.123Z"); 10 var baseDate = Date.parse("2014-05-13T16:53:20.123Z");
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 InspectorTest.addResult("Console messages with timestamps disabled:"); 32 InspectorTest.addResult("Console messages with timestamps disabled:");
33 addMessageWithFixedTimestamp("<Before>"); 33 addMessageWithFixedTimestamp("<Before>");
34 addMessageWithFixedTimestamp("<Before>", baseTimestamp + 456); 34 addMessageWithFixedTimestamp("<Before>", baseTimestamp + 456);
35 addMessageWithFixedTimestamp("<Before>"); 35 addMessageWithFixedTimestamp("<Before>");
36 36
37 InspectorTest.dumpConsoleMessages(); 37 InspectorTest.dumpConsoleMessages();
38 38
39 InspectorTest.addResult("Console messages with timestamps enabled:"); 39 InspectorTest.addResult("Console messages with timestamps enabled:");
40 Common.settingForTest("consoleTimestampsEnabled").set(true); 40 Common.settingForTest("consoleTimestampFormat").set(Console.ConsoleViewMessa ge.TimestampFormat.Full);
41 41
42 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000); 42 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000);
43 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000); 43 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000);
44 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1456); 44 addMessageWithFixedTimestamp("<After>", baseTimestamp + 1456);
45 45
46 Common.settingForTest("consoleTimestampsEnabled").set(false); 46 Common.settingForTest("consoleTimestampFormat").set(Console.ConsoleViewMessa ge.TimestampFormat.None);
47 Common.settingForTest("consoleTimestampsEnabled").set(true); 47 Common.settingForTest("consoleTimestampFormat").set(Console.ConsoleViewMessa ge.TimestampFormat.Full);
48 48
49 InspectorTest.dumpConsoleMessages(); 49 InspectorTest.dumpConsoleMessages();
50
51 InspectorTest.addResult("Console messages with short timestamps:");
52 Common.settingForTest("consoleTimestampFormat").set(Console.ConsoleViewMessa ge.TimestampFormat.Short);
53 InspectorTest.dumpConsoleMessages();
50 InspectorTest.completeTest(); 54 InspectorTest.completeTest();
51 } 55 }
52 </script> 56 </script>
53 </head> 57 </head>
54 <body onload="runTest()"> 58 <body onload="runTest()">
55 <p> 59 <p>
56 Tests the console timestamp setting. 60 Tests the console timestamp setting.
57 </p> 61 </p>
58 </body> 62 </body>
59 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698