| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <script src="../../http/tests/inspector/inspector-test.js"></script> | 2 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 3 <script src="../../http/tests/inspector/debugger-test.js"></script> | 3 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 4 | 4 |
| 5 <script type="application/dart" src="evaluate-in-console.dart"></script> | 5 <script type="application/dart" src="evaluate-in-console.dart"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 if (window.navigator.webkitStartDart) | 8 if (window.navigator.webkitStartDart) |
| 9 navigator.webkitStartDart(); | 9 navigator.webkitStartDart(); |
| 10 </script> | 10 </script> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 'test.foo', | 54 'test.foo', |
| 55 'test.toString()', | 55 'test.toString()', |
| 56 'test.toString(1)', | 56 'test.toString(1)', |
| 57 'test.create("x").instanceField', | 57 'test.create("x").instanceField', |
| 58 'test.concat(test.create("x"), test.create("y"))', | 58 'test.concat(test.create("x"), test.create("y"))', |
| 59 // Local variables and functions. | 59 // Local variables and functions. |
| 60 '_private', | 60 '_private', |
| 61 // Global fields and functions. | 61 // Global fields and functions. |
| 62 'globalField', | 62 'globalField', |
| 63 'calculateSquareRoot(25)', | 63 'calculateSquareRoot(25)', |
| 64 'document.$dom_createElement("div").tagName', | 64 'new Element.tag("div").outerHtml', |
| 65 'new Element.tag("div").tagName', |
| 66 // |
| 65 ]; | 67 ]; |
| 66 evaluate(expressions.shift()); | 68 evaluate(expressions.shift()); |
| 67 } | 69 } |
| 68 }, | 70 }, |
| 69 | 71 |
| 70 function testPrint(next) | 72 function testPrint(next) |
| 71 { | 73 { |
| 72 // This shouldn't crash. | 74 // This shouldn't crash. |
| 73 InspectorTest.evaluateInConsole('print("foo")', function() | 75 InspectorTest.evaluateInConsole('print("foo")', function() |
| 74 { | 76 { |
| 75 InspectorTest.resumeExecution(next); | 77 InspectorTest.resumeExecution(next); |
| 76 }); | 78 }); |
| 77 } | 79 } |
| 78 ]); | 80 ]); |
| 79 }; | 81 }; |
| 80 </script> | 82 </script> |
| 81 | 83 |
| 82 <body onload="runTest()"> | 84 <body onload="runTest()"> |
| 83 </body> | 85 </body> |
| 84 </html> | 86 </html> |
| OLD | NEW |