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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a6b2313dd79fd70b7ebd8df2dac9af66ac1efef0 |
--- /dev/null |
+++ b/LayoutTests/dart/inspector/evaluate-in-console-expected.txt |
@@ -0,0 +1,64 @@ |
+CONSOLE MESSAGE: Hello Instance of 'Window' |
+CONSOLE MESSAGE: foo |
+ |
+Running: testScopeChain |
+Set timer for test function. |
+Script execution paused. |
+Call stack: |
+ 0) handleMessage (evaluate-in-console.dart:13) |
+test.instanceField = "Test.instanceField" |
+test.instanceField = "new value" = "new value" |
+test.foo = null |
+test.foo = 3 = 3 |
+test.foo = 3 |
+test.somePropertyThatDoesntExist = Uncaught 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 Object.noSuchMethod (DART_CORE_LIBRARY_SOURCE_LOCATION) |
+#2 Eval.<anonymous closure> (evaluate:source:2:6) |
+#3 handleMessage (FILE_SOURCE_LOCATION/evaluate-in-console.dart:13:5) |
+test.toString() = "<Test instance with instanceField = new value>" |
+test.toString(1) = Uncaught Unhandled exception: |
+Class 'Test' has no instance method 'toString' with matching arguments. |
+ |
+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 Object.noSuchMethod (DART_CORE_LIBRARY_SOURCE_LOCATION) |
+#2 Eval.<anonymous closure> (evaluate:source:2:6) |
+#3 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)" |
+(LinkedList).toString() = "LinkedList" |
+var a=new List<int>()..add(4)..add(42) = [4, 42] |
+a.toString() = "[4, 42]" |
+$consoleVariables.variables() = [a] |
+var f = (x) => x*42 = (x) => x*42 |
+ |
+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 Instance of 'Window' |
+ |
+Running: testPrint |
+Script execution resumed. |
+ |