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

Unified Diff: runtime/observatory/tests/service/inbound_references_test.dart

Issue 1300853006: Functions are objects too! (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update tests Created 5 years, 4 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 | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/inbound_references_test.dart
diff --git a/runtime/observatory/tests/service/inbound_references_test.dart b/runtime/observatory/tests/service/inbound_references_test.dart
index 19fb6deac8b5e78fc50e8a6b48f5570b7084c155..b73ace5d01b9d1d9187a3bcb1b5cfacdcf0c8874 100644
--- a/runtime/observatory/tests/service/inbound_references_test.dart
+++ b/runtime/observatory/tests/service/inbound_references_test.dart
@@ -41,14 +41,14 @@ var tests = [
// Assert e is referenced by at least n, array, and the top-level
// field e.
- hasReferenceSuchThat((r) => r['slot'] is Field &&
- r['slot'].name=='edge' &&
- r['source'].isInstance &&
- r['source'].clazz.name=='Node');
- hasReferenceSuchThat((r) => r['slot'] == 1 &&
- r['source'].isList);
- hasReferenceSuchThat((r) => r['slot']=='<unknown>' &&
- r['source'] is Field);
+ hasReferenceSuchThat((r) => r['parentField'] != null &&
+ r['parentField'].name == 'edge' &&
+ r['source'].isInstance &&
+ r['source'].clazz.name == 'Node');
+ hasReferenceSuchThat((r) => r['parentListIndex'] == 1 &&
+ r['source'].isList);
+ hasReferenceSuchThat((r) => r['source'] is Field &&
+ r['source'].name == 'e');
}
];
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698