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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dart/inspector/evaluate-in-console.html
diff --git a/LayoutTests/dart/inspector/evaluate-in-console.html b/LayoutTests/dart/inspector/evaluate-in-console.html
index 6c249f30a71c5f3dbf1827fe6010eff1dc06ca6c..0d0514ddb85455ffdbd04534d922e1ee9bf62029 100644
--- a/LayoutTests/dart/inspector/evaluate-in-console.html
+++ b/LayoutTests/dart/inspector/evaluate-in-console.html
@@ -75,19 +75,24 @@ function test()
'globalField',
'calculateSquareRoot(25)',
'new Element.tag("div").outerHtml',
+ '(new Element.tag("div")..append(new Element.tag("h1"))).outerHtml',
'new Element.tag("div").tagName',
'intList.toString()',
- 'intList.__proto__.someMethodThatDoesNotExist()',
- 'intList.__proto__.toString()',
- // Verify that making a Dart object the prototype of a JS
- // object behaves correctly. Dart methods always act as if
- // they are bound to the Dart object they are associated
- // with unlike JS methods.
- 'a=new List()',
- 'jsObject={}',
- 'jsObject.__proto__=a',
- 'jsObject.add(7)',
- 'a.toString()'
+ '(LinkedList).toString()',
+ '$var.a=new List<int>()..add(4)..add(42)',
+ '$var.a.toString()',
+ '$var.variables()',
+ '$var.f = (x) => x*42',
+ '$var.f(2)',
+ '[] is List',
+ '{} is List',
+ '"This should be an int: ${10000000000000000000000 - 1}"',
+ '10000000000000000000000 is int',
+ '1.0 is int',
+ '1.0 is double',
+ '((x) => x * 2)(21)',
+ '((x) { var z = x * 4; return z; })(21)',
+ 'print("Hello $window")',
];
evaluate(expressions.shift());
}
« 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