Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: LayoutTests/dart/inspector/evaluate-in-console.html

Issue 23710032: Switch the DevTools to support a true Dart REPL (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: PTAL Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 'test.toString()', 68 'test.toString()',
69 'test.toString(1)', 69 'test.toString(1)',
70 'test.create("x").instanceField', 70 'test.create("x").instanceField',
71 'test.concat(test.create("x"), test.create("y"))', 71 'test.concat(test.create("x"), test.create("y"))',
72 // Local variables and functions. 72 // Local variables and functions.
73 '_private', 73 '_private',
74 // Global fields and functions. 74 // Global fields and functions.
75 'globalField', 75 'globalField',
76 'calculateSquareRoot(25)', 76 'calculateSquareRoot(25)',
77 'new Element.tag("div").outerHtml', 77 'new Element.tag("div").outerHtml',
78 '(new Element.tag("div")..append(new Element.tag("h1"))).out erHtml',
78 'new Element.tag("div").tagName', 79 'new Element.tag("div").tagName',
79 'intList.toString()', 80 'intList.toString()',
80 'intList.__proto__.someMethodThatDoesNotExist()', 81 '(LinkedList).toString()',
81 'intList.__proto__.toString()', 82 '$var.a=new List<int>()..add(4)..add(42)',
82 // Verify that making a Dart object the prototype of a JS 83 '$var.a.toString()',
83 // object behaves correctly. Dart methods always act as if 84 '$var.variables()',
84 // they are bound to the Dart object they are associated 85 '$var.f = (x) => x*42',
85 // with unlike JS methods. 86 '$var.f(2)',
86 'a=new List()', 87 '[] is List',
87 'jsObject={}', 88 '{} is List',
88 'jsObject.__proto__=a', 89 '"This should be an int: ${10000000000000000000000 - 1}"',
89 'jsObject.add(7)', 90 '10000000000000000000000 is int',
90 'a.toString()' 91 '1.0 is int',
92 '1.0 is double',
93 '((x) => x * 2)(21)',
94 '((x) { var z = x * 4; return z; })(21)',
95 'print("Hello $window")',
91 ]; 96 ];
92 evaluate(expressions.shift()); 97 evaluate(expressions.shift());
93 } 98 }
94 }, 99 },
95 100
96 function testPrint(next) 101 function testPrint(next)
97 { 102 {
98 // This shouldn't crash. 103 // This shouldn't crash.
99 InspectorTest.evaluateInConsole('print("foo")', function() 104 InspectorTest.evaluateInConsole('print("foo")', function()
100 { 105 {
101 InspectorTest.resumeExecution(next); 106 InspectorTest.resumeExecution(next);
102 }); 107 });
103 } 108 }
104 ]); 109 ]);
105 }; 110 };
106 </script> 111 </script>
107 112
108 <body onload="runTest()"> 113 <body onload="runTest()">
109 </body> 114 </body>
110 </html> 115 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dart/inspector/debugger-expected.txt ('k') | LayoutTests/dart/inspector/evaluate-in-console-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698