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

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

Issue 1133733005: Use words please. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: also rename service rpc Created 5 years, 7 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/evaluate_activation_test.dart
diff --git a/runtime/observatory/tests/service/evaluate_activation_test.dart b/runtime/observatory/tests/service/evaluate_activation_test.dart
index 23d551a38b6e4bd2be9045d3960fd336176ed72e..773f28475c0f95f56477d9a8be576b79b5127ed6 100644
--- a/runtime/observatory/tests/service/evaluate_activation_test.dart
+++ b/runtime/observatory/tests/service/evaluate_activation_test.dart
@@ -70,7 +70,7 @@ class C {
testMethod(Isolate isolate) async {
// silence analyzer.
expect(math.sqrt(4), equals(2));
- Library rootLib = await isolate.rootLib.load();
+ Library rootLib = await isolate.rootLibrary.load();
ServiceFunction function =
rootLib.functions.singleWhere((f) => f.name == 'breakHere');
Breakpoint bpt = await isolate.addBreakpointAtEntry(function);
@@ -112,13 +112,13 @@ testMethod(Isolate isolate) async {
}
});
- var result = await isolate.eval(rootLib, 'new C().method(3);');
+ var result = await rootLib.evaluate('new C().method(3);');
print("Result $result");
expect(hitBreakpoint, isTrue);
}
testMethod2(Isolate isolate) async {
- Library rootLib = await isolate.rootLib.load();
+ Library rootLib = await isolate.rootLibrary.load();
ServiceFunction function =
rootLib.functions.singleWhere((f) => f.name == 'breakHere');
Breakpoint bpt = await isolate.addBreakpointAtEntry(function);
@@ -160,13 +160,13 @@ testMethod2(Isolate isolate) async {
}
});
- var result = await isolate.eval(rootLib, 'C.method2(3);');
+ var result = await rootLib.evaluate('C.method2(3);');
print("Result $result");
expect(hitBreakpoint, isTrue);
}
testMethod3(Isolate isolate) async {
- Library rootLib = await isolate.rootLib.load();
+ Library rootLib = await isolate.rootLibrary.load();
ServiceFunction function =
rootLib.functions.singleWhere((f) => f.name == 'breakHere');
Breakpoint bpt = await isolate.addBreakpointAtEntry(function);
@@ -200,14 +200,14 @@ testMethod3(Isolate isolate) async {
}
});
- var result = await isolate.eval(rootLib, 'new C().method3(3);');
+ var result = await rootLib.evaluate('new C().method3(3);');
print("Result $result");
expect(hitBreakpoint, isTrue);
}
testMethod4(Isolate isolate) async {
- Library rootLib = await isolate.rootLib.load();
+ Library rootLib = await isolate.rootLibrary.load();
ServiceFunction function =
rootLib.functions.singleWhere((f) => f.name == 'breakHere');
Breakpoint bpt = await isolate.addBreakpointAtEntry(function);
@@ -249,7 +249,7 @@ testMethod4(Isolate isolate) async {
}
});
- var result = await isolate.eval(rootLib,
+ var result = await rootLib.evaluate(
'(){ new C().method4(3); C.closureWithReturnedHome(7); }()');
print("Result $result");
expect(hitBreakpoint, isTrue);
« no previous file with comments | « runtime/observatory/tests/service/eval_test.dart ('k') | runtime/observatory/tests/service/get_instances_rpc_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698