Index: dart/tests/try/poi/serialize_test.dart |
diff --git a/dart/tests/try/poi/serialize_test.dart b/dart/tests/try/poi/serialize_test.dart |
index 36ca5ec37a6f295b30cfd5ca7aa015f7eddfb5d9..26e872b19e9d8ae3766e210762d026aacb678e5c 100644 |
--- a/dart/tests/try/poi/serialize_test.dart |
+++ b/dart/tests/try/poi/serialize_test.dart |
@@ -39,9 +39,9 @@ Future testPoi() { |
Expect.stringEquals('$script', '$foundScript'); |
Expect.stringEquals('fisk', element.name); |
+ String scope = poi.scopeInformation(element, position); |
Expect.stringEquals( |
- JSON.encode(expected), |
- JSON.encode(JSON.decode(poi.scopeInformation(element, position)))); |
+ JSON.encode(expected), JSON.encode(JSON.decode(scope)), scope); |
}); |
} |
@@ -52,21 +52,25 @@ void main() { |
final expected = { |
"name": "fisk", |
"kind": "function", |
+ "type": "() -> dynamic", |
"enclosing": { |
"name": "Foo", |
"kind": "class", |
"members": [ |
{ |
"name": "fisk", |
- "kind": "function" |
+ "kind": "function", |
+ "type": "() -> dynamic" |
}, |
{ |
"name": "hest", |
- "kind": "function" |
+ "kind": "function", |
+ "type": "() -> dynamic" |
}, |
{ |
"name": "", |
- "kind": "generative_constructor" |
+ "kind": "generative_constructor", |
+ "type": "() -> Foo" |
} |
], |
"enclosing": { |
@@ -75,7 +79,8 @@ final expected = { |
"members": [ |
{ |
"name": "main", |
- "kind": "function" |
+ "kind": "function", |
+ "type": "() -> dynamic" |
}, |
{ |
"name": "Foo", |