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

Unified Diff: dart/tests/try/poi/serialize_test.dart

Issue 397843008: Add type information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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
« no previous file with comments | « dart/site/try/poi/poi.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « dart/site/try/poi/poi.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698