Index: LayoutTests/dart/inspector/evaluate-in-console-expected.txt |
diff --git a/LayoutTests/dart/inspector/evaluate-in-console-expected.txt b/LayoutTests/dart/inspector/evaluate-in-console-expected.txt |
index 0e7c6acfbc41179070a10c5be546b2b43873a5f7..42ca7d998c4b1a0ad5cff3ec2306df400dffc71e 100644 |
--- a/LayoutTests/dart/inspector/evaluate-in-console-expected.txt |
+++ b/LayoutTests/dart/inspector/evaluate-in-console-expected.txt |
@@ -1,3 +1,4 @@ |
+CONSOLE MESSAGE: line 1: Hello <window> |
CONSOLE MESSAGE: line 1: foo |
Debugger was enabled. |
@@ -10,32 +11,56 @@ test.instanceField = "new value" = "new value" |
test.foo = null |
test.foo = 3 = 3 |
test.foo = 3 |
-test.somePropertyThatDoesntExist = undefined |
+test.somePropertyThatDoesntExist = "Unhandled exception: |
+Class 'Test' has no instance getter 'somePropertyThatDoesntExist'. |
+ |
+NoSuchMethodError : method not found: 'somePropertyThatDoesntExist' |
+Receiver: Instance of 'Test' |
+Arguments: [] |
+#0 Object.noSuchMethod (DART_CORE_LIBRARY_SOURCE_LOCATION) |
+#1 eval.<anonymous closure> (:2:6) |
+#2 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5) |
+#3 eval.<anonymous closure> (:2:6) |
+#4 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5)" |
test.toString() = "<Test instance with instanceField = new value>" |
test.toString(1) = "Unhandled exception: |
-Closure call with mismatched arguments: function 'call' |
+Class 'Test' has no instance method 'toString' with matching arguments. |
-NoSuchMethodError: incorrect number of arguments passed to method named 'call' |
-Receiver: Closure: () => String from Function 'toString':. |
-Tried calling: call(1) |
-Found: call() |
+NoSuchMethodError: incorrect number of arguments passed to method named 'toString' |
+Receiver: Instance of 'Test' |
+Tried calling: toString(1) |
+Found: toString() |
#0 Object.noSuchMethod (DART_CORE_LIBRARY_SOURCE_LOCATION) |
-#1 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5)" |
+#1 eval.<anonymous closure> (:2:14) |
+#2 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5) |
+#3 eval.<anonymous closure> (:2:14) |
+#4 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5)" |
test.create("x").instanceField = "x" |
test.concat(test.create("x"), test.create("y")) = "new value:x:y" |
_private = "private" |
globalField = null |
calculateSquareRoot(25) = 5 |
new Element.tag("div").outerHtml = "<div></div>" |
+(new Element.tag("div")..append(new Element.tag("h1"))).outerHtml = "<div><h1></h1></div>" |
new Element.tag("div").tagName = "DIV" |
intList.toString() = "{4, 2}" |
-intList.__proto__.someMethodThatDoesNotExist() = TypeError: Object #<LinkedList> has no method 'someMethodThatDoesNotExist' |
-intList.__proto__.toString() = "Library:'dart:collection' Class: LinkedList" |
-a=new List() = |
-jsObject={} = Object {} |
-jsObject.__proto__=a = |
-jsObject.add(7) = null |
-a.toString() = "[7]" |
+(LinkedList).toString() = "LinkedList" |
+$var.a=new List<int>()..add(4)..add(42) = |
+$var.a.toString() = "[4, 42]" |
+$var.object={"foo": "bar", "baz": 42} = _LinkedHashMap {:foo: "bar", :baz: 42, _nextEntry@0x23c35ea0: _LinkedHashMapEntry, _previousEntry@0x23c35ea0: _LinkedHashMapEntry, _elementCount@0x23c35ea0: 2…} |
vsm
2013/09/12 00:17:23
The hex numbers on the previous line might not be
Jacob
2013/09/17 21:44:43
Agreed. Removed that test case just to be safe. L
|
+$var.object.toString() = "{foo: bar, baz: 42}" |
+$var.keys() = |
+$var.f = (x) => x*42 = [Dart Function] {} |
+$var.f(2) = 84 |
+[] is List = true |
+{} is List = false |
+"This should be an int: ${10000000000000000000000 - 1}" = "This should be an int: 9999999999999999999999" |
+10000000000000000000000 is int = true |
+1.0 is int = false |
+1.0 is double = true |
+((x) => x * 2)(21) = 42 |
+((x) { var z = x * 4; return z; })(21) = 84 |
+print("Hello $window") = Hello <window> |
Running: testPrint |
Script execution resumed. |