OLD | NEW |
(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> |
OLD | NEW |