| 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 |
| 6 <script> |
| 7 function b() |
| 8 { |
| 9 console.assert(false, 1); |
| 10 console.assert(false, "a", "b"); |
| 11 } |
| 12 |
| 13 function a() |
| 14 { |
| 15 b(); |
| 16 } |
| 17 //# sourceURL=console-assert.html |
| 18 </script> |
| 19 |
| 20 <script> |
| 21 function test() |
| 22 { |
| 23 var callCount = 0; |
| 24 function callback() |
| 25 { |
| 26 if (++callCount === 2) |
| 27 InspectorTest.expandConsoleMessages(onExpandedMessages); |
| 28 } |
| 29 |
| 30 function onExpandedMessages() |
| 31 { |
| 32 InspectorTest.dumpConsoleMessages(); |
| 33 InspectorTest.completeTest(); |
| 34 } |
| 35 |
| 36 InspectorTest.evaluateInPage("setTimeout(a, 0)"); |
| 37 InspectorTest.addConsoleSniffer(callback, true); |
| 38 } |
| 39 |
| 40 </script> |
| 41 </head> |
| 42 |
| 43 <body onload="runTest()"> |
| 44 <p> |
| 45 Tests that console.assert() will dump a message and stack trace with source URLs
and line numbers. |
| 46 </p> |
| 47 |
| 48 </body> |
| 49 </html> |
| OLD | NEW |