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

Unified Diff: runtime/bin/vmservice/observatory/test/weak_properties_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
« no previous file with comments | « runtime/bin/vmservice/observatory/test/string_escaping_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/observatory/test/weak_properties_test.dart
diff --git a/runtime/bin/vmservice/observatory/test/weak_properties_test.dart b/runtime/bin/vmservice/observatory/test/weak_properties_test.dart
index 662d60f1ee9871a1812594c2a9fad444842a4062..71d5051fd6fe1fb67e7ab15dd699ca3fa9762442 100644
--- a/runtime/bin/vmservice/observatory/test/weak_properties_test.dart
+++ b/runtime/bin/vmservice/observatory/test/weak_properties_test.dart
@@ -36,12 +36,12 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceMap keyField = lib.variables.singleWhere((v) => v.name == 'key');
- Instance key = keyField['value'];
- ServiceMap valueField = lib.variables.singleWhere((v) => v.name == 'value');
- Instance value = valueField['value'];
- ServiceMap propField = lib.variables.singleWhere((v) => v.name == 'weak_property');
- Instance prop = propField['value'];
+ Field keyField = lib.variables.singleWhere((v) => v.name == 'key');
+ Instance key = keyField.value;
+ Field valueField = lib.variables.singleWhere((v) => v.name == 'value');
+ Instance value = valueField.value;
+ Field propField = lib.variables.singleWhere((v) => v.name == 'weak_property');
+ Instance prop = propField.value;
expect(key.isWeakProperty, isFalse);
expect(value.isWeakProperty, isFalse);
« no previous file with comments | « runtime/bin/vmservice/observatory/test/string_escaping_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698