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

Unified Diff: runtime/bin/vmservice/observatory/test/mirror_references_test.dart

Issue 561053003: Give fields a model class in the service library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: build Created 6 years, 3 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
Index: runtime/bin/vmservice/observatory/test/mirror_references_test.dart
diff --git a/runtime/bin/vmservice/observatory/test/mirror_references_test.dart b/runtime/bin/vmservice/observatory/test/mirror_references_test.dart
index 651803a54c0239af585adb17abcaef545f5a3196..b3c782cbf1316397742e24d0324bb12daaed029a 100644
--- a/runtime/bin/vmservice/observatory/test/mirror_references_test.dart
+++ b/runtime/bin/vmservice/observatory/test/mirror_references_test.dart
@@ -27,10 +27,10 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceMap fooField = lib.variables.singleWhere((v) => v.name == 'foo');
- Instance foo = fooField['value'];
- ServiceMap refField = lib.variables.singleWhere((v) => v.name == 'ref');
- Instance ref = refField['value'];
+ Field fooField = lib.variables.singleWhere((v) => v.name == 'foo');
+ Instance foo = fooField.value;
+ Field refField = lib.variables.singleWhere((v) => v.name == 'ref');
+ Instance ref = refField.value;
expect(foo.isMirrorReference, isFalse);
expect(ref.isMirrorReference, isTrue);

Powered by Google App Engine
This is Rietveld 408576698