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 function test() |
| 7 { |
| 8 var commands = ["{a:1, b:2}", "{a:1}", "{var a = 1; eval(\"{a :1, b:2 }\");}
", "{ for (var i = 0; i < 5; ++i); }"]; |
| 9 var current = -1; |
| 10 loopOverCommands(); |
| 11 function loopOverCommands() |
| 12 { |
| 13 ++current; |
| 14 if (current < commands.length) { |
| 15 InspectorTest.evaluateInConsole(commands[current], loopOverCommands)
; |
| 16 } else { |
| 17 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
| 18 InspectorTest.completeTest(); |
| 19 } |
| 20 } |
| 21 } |
| 22 </script> |
| 23 </head> |
| 24 <body onload="runTest()"> |
| 25 <p> |
| 26 Tests that evaluating object literal in the console correctly reported. |
| 27 </p> |
| 28 </body> |
| 29 </html> |
OLD | NEW |