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 function postMessageToDart() | 8 function postMessageToDart() |
9 { | 9 { |
10 window.postMessage('fromJS', '*'); | 10 window.postMessage('fromJS', '*'); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 // Global fields and functions. | 75 // Global fields and functions. |
76 'globalField', | 76 'globalField', |
77 'calculateSquareRoot(25)', | 77 'calculateSquareRoot(25)', |
78 'new Element.tag("div").outerHtml', | 78 'new Element.tag("div").outerHtml', |
79 '(new Element.tag("div")..append(new Element.tag("h1"))).out erHtml', | 79 '(new Element.tag("div")..append(new Element.tag("h1"))).out erHtml', |
80 'new Element.tag("div").tagName', | 80 'new Element.tag("div").tagName', |
81 'intList.toString()', | 81 'intList.toString()', |
82 '(LinkedList).toString()', | 82 '(LinkedList).toString()', |
83 'var a=new List<int>()..add(4)..add(42)', | 83 'var a=new List<int>()..add(4)..add(42)', |
84 'a.toString()', | 84 'a.toString()', |
85 '$consoleVariables.variables()', | 85 // FIXME: the following case must be commented out until |
86 // dartbug.com/18646 is fixed. | |
vsm
2014/06/03 14:24:49
This is marked fixed now. Re-enable?
Jacob
2014/06/03 20:23:12
Done.
| |
87 // '$consoleVariables.variables()', | |
86 'var f = (x) => x*42', | 88 'var f = (x) => x*42', |
87 'f(2)', | 89 'f(2)', |
88 '[] is List', | 90 '[] is List', |
89 '{} is List', | 91 '{} is List', |
90 '"This should be an int: ${10000000000000000000000 - 1}"', | 92 '"This should be an int: ${10000000000000000000000 - 1}"', |
91 '10000000000000000000000 is int', | 93 '10000000000000000000000 is int', |
92 '1.0 is int', | 94 '1.0 is int', |
93 '1.0 is double', | 95 '1.0 is double', |
94 '((x) => x * 2)(21)', | 96 '((x) => x * 2)(21)', |
95 '((x) { var z = x * 4; return z; })(21)', | 97 '((x) { var z = x * 4; return z; })(21)', |
(...skipping 11 matching lines...) Expand all Loading... | |
107 InspectorTest.resumeExecution(next); | 109 InspectorTest.resumeExecution(next); |
108 }); | 110 }); |
109 } | 111 } |
110 ]); | 112 ]); |
111 }; | 113 }; |
112 </script> | 114 </script> |
113 | 115 |
114 <body onload="runTest()"> | 116 <body onload="runTest()"> |
115 </body> | 117 </body> |
116 </html> | 118 </html> |
OLD | NEW |