Chromium Code Reviews| 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..94f0e7b6a9b315dca808ba1dacfbdf30021e7d7f 100644 |
| --- a/LayoutTests/dart/inspector/evaluate-in-console.html |
| +++ b/LayoutTests/dart/inspector/evaluate-in-console.html |
| @@ -75,19 +75,26 @@ 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()', |
|
Jacob
2013/09/11 23:45:46
Tweaked the test cases to make more sense given a
|
| + '$var.a=new List<int>()..add(4)..add(42)', |
| + '$var.a.toString()', |
| + '$var.object={"foo": "bar", "baz": 42}', |
| + '$var.object.toString()', |
| + '$var.keys()', |
|
Jacob
2013/09/11 23:45:46
$var is a hack to let you store temp variables in
vsm
2013/09/12 00:17:23
$var looks pretty magical.
Jacob
2013/09/17 21:44:43
Agreed. After this lands I'm going to send out a f
|
| + '$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()); |
| } |