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

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

Issue 2291233002: Converted Observatory instance-view element (Closed)
Patch Set: Addressed comments Created 4 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
Index: runtime/observatory/tests/service/contexts_test.dart
diff --git a/runtime/observatory/tests/service/contexts_test.dart b/runtime/observatory/tests/service/contexts_test.dart
index c91bfce55dcc7410991f92697a807875b1456080..d93b0f142ceeb173c6b2fc3c8fa0f2bf59b9b478 100644
--- a/runtime/observatory/tests/service/contexts_test.dart
+++ b/runtime/observatory/tests/service/contexts_test.dart
@@ -56,9 +56,9 @@ var tests = [
return field.load().then((_) {
return field.staticValue.load().then((Instance block) {
expect(block.isClosure, isTrue);
- expect(block.context.isContext, isTrue);
- expect(block.context.length, equals(0));
- return block.context.load().then((Context ctxt) {
+ expect(block.closureContext.isContext, isTrue);
+ expect(block.closureContext.length, equals(0));
+ return block.closureContext.load().then((Context ctxt) {
expect(ctxt.parentContext, isNull);
});
});
@@ -71,9 +71,9 @@ var tests = [
return field.load().then((_) {
return field.staticValue.load().then((Instance block) {
expect(block.isClosure, isTrue);
- expect(block.context.isContext, isTrue);
- expect(block.context.length, equals(1));
- return block.context.load().then((Context ctxt) {
+ expect(block.closureContext.isContext, isTrue);
+ expect(block.closureContext.length, equals(1));
+ return block.closureContext.load().then((Context ctxt) {
expect(ctxt.variables.single.value.asValue.isString, isTrue);
expect(ctxt.variables.single.value.asValue.valueAsString,
equals('I could be copied into the block'));
@@ -93,9 +93,9 @@ var tests = [
return field.load().then((_) {
return field.staticValue.load().then((Instance block) {
expect(block.isClosure, isTrue);
- expect(block.context.isContext, isTrue);
- expect(block.context.length, equals(1));
- return block.context.load().then((Context ctxt) {
+ expect(block.closureContext.isContext, isTrue);
+ expect(block.closureContext.length, equals(1));
+ return block.closureContext.load().then((Context ctxt) {
expect(ctxt.variables.single.value.asValue.isInt, isTrue);
expect(ctxt.variables.single.value.asValue.valueAsString, equals('43'));
expect(ctxt.parentContext.isContext, isTrue);
@@ -114,9 +114,9 @@ var tests = [
return field.load().then((_) {
return field.staticValue.load().then((Instance block) {
expect(block.isClosure, isTrue);
- expect(block.context.isContext, isTrue);
- expect(block.context.length, equals(1));
- return block.context.load().then((Context ctxt) {
+ expect(block.closureContext.isContext, isTrue);
+ expect(block.closureContext.length, equals(1));
+ return block.closureContext.load().then((Context ctxt) {
expect(ctxt.variables.single.value.asValue.isInt, isTrue);
expect(ctxt.variables.single.value.asValue.valueAsString,
equals('4201'));

Powered by Google App Engine
This is Rietveld 408576698