| 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 InspectorTest.evaluateInConsole("Math.random", step1); | 8 InspectorTest.evaluateInConsole("Math.random", step1); |
| 9 | 9 |
| 10 function step1(current, total) | 10 function step1() |
| 11 { |
| 12 InspectorTest.evaluateInConsole("document.appendChild", step2); |
| 13 } |
| 14 |
| 15 function step2() |
| 11 { | 16 { |
| 12 InspectorTest.expandConsoleMessages(onExpanded); | 17 InspectorTest.expandConsoleMessages(onExpanded); |
| 13 } | 18 } |
| 14 | 19 |
| 15 function onExpanded() | 20 function onExpanded() |
| 16 { | 21 { |
| 17 InspectorTest.dumpConsoleMessages(); | 22 InspectorTest.dumpConsoleMessages(); |
| 18 InspectorTest.completeTest(); | 23 InspectorTest.completeTest(); |
| 19 } | 24 } |
| 20 } | 25 } |
| 21 </script> | 26 </script> |
| 22 </head> | 27 </head> |
| 23 <body onload="runTest()"> | 28 <body onload="runTest()"> |
| 24 <p>Tests that console dumps native function without exception.</p> | 29 <p>Tests that console dumps native function without exception.</p> |
| 25 </body> | 30 </body> |
| 26 </html> | 31 </html> |
| OLD | NEW |