OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> |
| 5 |
| 6 function test() |
| 7 { |
| 8 InspectorTest.eventHandler["Console.messageAdded"] = messageAdded; |
| 9 InspectorTest.sendCommand("Console.enable", {}); |
| 10 |
| 11 var deprecatedMethods = [ |
| 12 "console.timeline(\"42\")", |
| 13 "console.timeline(\"42\")", |
| 14 "console.timeline(\"42\")", // three calls should produce one warning me
ssage |
| 15 "console.timelineEnd(\"42\")", |
| 16 "console.markTimeline(\"42\")", |
| 17 ]; |
| 18 InspectorTest.sendCommand("Runtime.evaluate", { expression: deprecatedMethod
s.join(";") }); |
| 19 |
| 20 var messagesLeft = 3; |
| 21 function messageAdded(data) |
| 22 { |
| 23 if (!--messagesLeft) |
| 24 InspectorTest.completeTest(); |
| 25 } |
| 26 } |
| 27 </script> |
| 28 </head> |
| 29 <body onload="runTest()">Tests checks that deprecation messages for console.</bo
dy> |
| 30 </html> |
OLD | NEW |