| 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 | |
| 7 function test() | 6 function test() |
| 8 { | 7 { |
| 9 InspectorTest.evaluateInConsole("1+2", step2); | 8 InspectorTest.evaluateInConsole("Math.random", step1); |
| 10 | 9 |
| 11 function step2() | 10 function step1(current, total) |
| 12 { | 11 { |
| 12 InspectorTest.expandConsoleMessages(); |
| 13 InspectorTest.dumpConsoleMessages(); | 13 InspectorTest.dumpConsoleMessages(); |
| 14 InspectorTest.completeTest(); | 14 InspectorTest.completeTest(); |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 | |
| 18 </script> | 17 </script> |
| 19 </head> | 18 </head> |
| 20 | |
| 21 <body onload="runTest()"> | 19 <body onload="runTest()"> |
| 22 <p> | 20 <p>Tests that console dumps native function without exception.</p> |
| 23 Tests that simple evaluations may be performed in the console. | |
| 24 </p> | |
| 25 | |
| 26 </body> | 21 </body> |
| 27 </html> | 22 </html> |
| OLD | NEW |