OLD | NEW |
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 Loading... |
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> |
OLD | NEW |