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

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

Issue 214693005: DevTools: [Console] Display timestamps when the Console timestamps setting is re-enabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/devtools/front_end/ConsoleView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000; 8 var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000;
9 var baseTimestamp = 1400000000000 + tzOffset; 9 var baseTimestamp = 1400000000000 + tzOffset;
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 InspectorTest.dumpConsoleMessages(); 34 InspectorTest.dumpConsoleMessages();
35 35
36 InspectorTest.addResult("Console messages with timestamps enabled:"); 36 InspectorTest.addResult("Console messages with timestamps enabled:");
37 WebInspector.settings.consoleTimestampsEnabled.set(true); 37 WebInspector.settings.consoleTimestampsEnabled.set(true);
38 38
39 addMessageWithFixedTimestamp("<After>"); 39 addMessageWithFixedTimestamp("<After>");
40 addMessageWithFixedTimestamp("<After>"); 40 addMessageWithFixedTimestamp("<After>");
41 addMessageWithFixedTimestamp("<After>", baseTimestamp + 456); 41 addMessageWithFixedTimestamp("<After>", baseTimestamp + 456);
42 42
43 WebInspector.settings.consoleTimestampsEnabled.set(false);
44 WebInspector.settings.consoleTimestampsEnabled.set(true);
45
43 InspectorTest.dumpConsoleMessages(); 46 InspectorTest.dumpConsoleMessages();
44 InspectorTest.completeTest(); 47 InspectorTest.completeTest();
45 } 48 }
46 </script> 49 </script>
47 </head> 50 </head>
48 <body onload="runTest()"> 51 <body onload="runTest()">
49 <p> 52 <p>
50 Tests the console timestamp setting. 53 Tests the console timestamp setting.
51 </p> 54 </p>
52 </body> 55 </body>
53 </html> 56 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698