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

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

Issue 24989007: Model each Dart library as its own ScriptState when devtools are enabled. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/dart/inspector/evaluate-in-console-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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")..append(new Element.tag("h1"))).out erHtml',
79 'new Element.tag("div").tagName', 79 'new Element.tag("div").tagName',
80 'intList.toString()', 80 'intList.toString()',
81 '(LinkedList).toString()', 81 '(LinkedList).toString()',
82 '$var.a=new List<int>()..add(4)..add(42)', 82 'var a=new List<int>()..add(4)..add(42)',
83 '$var.a.toString()', 83 'a.toString()',
84 '$var.variables()', 84 '$consoleVariables.variables()',
85 '$var.f = (x) => x*42', 85 'var f = (x) => x*42',
86 '$var.f(2)', 86 'f(2)',
87 '[] is List', 87 '[] is List',
88 '{} is List', 88 '{} is List',
89 '"This should be an int: ${10000000000000000000000 - 1}"', 89 '"This should be an int: ${10000000000000000000000 - 1}"',
90 '10000000000000000000000 is int', 90 '10000000000000000000000 is int',
91 '1.0 is int', 91 '1.0 is int',
92 '1.0 is double', 92 '1.0 is double',
93 '((x) => x * 2)(21)', 93 '((x) => x * 2)(21)',
94 '((x) { var z = x * 4; return z; })(21)', 94 '((x) { var z = x * 4; return z; })(21)',
95 'print("Hello $window")', 95 'print("Hello $window")',
96 ]; 96 ];
97 evaluate(expressions.shift()); 97 evaluate(expressions.shift());
98 } 98 }
99 }, 99 },
100 100
101 function testPrint(next) 101 function testPrint(next)
102 { 102 {
103 // This shouldn't crash. 103 // This shouldn't crash.
104 InspectorTest.evaluateInConsole('print("foo")', function() 104 InspectorTest.evaluateInConsole('print("foo")', function()
105 { 105 {
106 InspectorTest.resumeExecution(next); 106 InspectorTest.resumeExecution(next);
107 }); 107 });
108 } 108 }
109 ]); 109 ]);
110 }; 110 };
111 </script> 111 </script>
112 112
113 <body onload="runTest()"> 113 <body onload="runTest()">
114 </body> 114 </body>
115 </html> 115 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/dart/inspector/evaluate-in-console-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698