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

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

Issue 544753002: Address static warnings in the service library and tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/contexts_test.dart
diff --git a/runtime/bin/vmservice/observatory/test/contexts_test.dart b/runtime/bin/vmservice/observatory/test/contexts_test.dart
index 47c04415433c5ed71c195941935b3ab63b5f0218..38a5a2e2a472153760f3cd03e112e4e76680f120 100644
--- a/runtime/bin/vmservice/observatory/test/contexts_test.dart
+++ b/runtime/bin/vmservice/observatory/test/contexts_test.dart
@@ -52,7 +52,7 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceObject field = lib.variables.singleWhere((v) => v.name == 'cleanBlock');
+ ServiceMap field = lib.variables.singleWhere((v) => v.name == 'cleanBlock');
return field['value'].load().then((Instance block) {
expect(block.isClosure, isTrue);
expect(block.closureCtxt.isContext, isTrue);
@@ -65,7 +65,7 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceObject field = lib.variables.singleWhere((v) => v.name == 'copyingBlock');
+ ServiceMap field = lib.variables.singleWhere((v) => v.name == 'copyingBlock');
return field['value'].load().then((Instance block) {
expect(block.isClosure, isTrue);
expect(block.closureCtxt.isContext, isTrue);
@@ -80,7 +80,7 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceObject field = lib.variables.singleWhere((v) => v.name == 'fullBlock');
+ ServiceMap field = lib.variables.singleWhere((v) => v.name == 'fullBlock');
return field['value'].load().then((Instance block) {
expect(block.isClosure, isTrue);
expect(block.closureCtxt.isContext, isTrue);
@@ -95,7 +95,7 @@ var tests = [
(Isolate isolate) =>
isolate.rootLib.load().then((Library lib) {
- ServiceObject field = lib.variables.singleWhere((v) => v.name == 'fullBlockWithChain');
+ ServiceMap field = lib.variables.singleWhere((v) => v.name == 'fullBlockWithChain');
return field['value'].load().then((Instance block) {
expect(block.isClosure, isTrue);
expect(block.closureCtxt.isContext, isTrue);
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/service/object.dart ('k') | runtime/bin/vmservice/vmservice.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698