| 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 |
| 7 function testFunction() |
| 8 { |
| 9 console.time(); |
| 10 console.timeEnd(); |
| 11 console.time("42"); |
| 12 console.timeEnd("42"); |
| 13 console.time(239) |
| 14 console.timeEnd(239); |
| 15 console.time({}); |
| 16 console.timeEnd({}); |
| 17 } |
| 18 |
| 19 function test() |
| 20 { |
| 21 InspectorTest.waitUntilNthMessageReceived(4, dumpMessagesAndCompleTest); |
| 22 InspectorTest.evaluateInPage("testFunction()"); |
| 23 |
| 24 function dumpMessagesAndCompleTest() |
| 25 { |
| 26 var messages = InspectorTest.dumpConsoleMessagesIntoArray(); |
| 27 messages = messages.map(message => message.replace(/\d+\.\d+ms/, "<time>
")); |
| 28 InspectorTest.addResults(messages); |
| 29 InspectorTest.completeTest(); |
| 30 } |
| 31 } |
| 32 </script> |
| 33 </head> |
| 34 <body onload="runTest()"> |
| 35 <p> |
| 36 console.time / console.timeEnd tests. |
| 37 </p> |
| 38 </body> |
| 39 </html> |
| OLD | NEW |