Index: runtime/observatory/tests/service/eval_test.dart |
diff --git a/runtime/observatory/tests/service/eval_test.dart b/runtime/observatory/tests/service/eval_test.dart |
index d41a70ba5590c99a2c469c7ed37947fb9a6bde78..86598f970f74143dd447315f65b569df09a67f53 100644 |
--- a/runtime/observatory/tests/service/eval_test.dart |
+++ b/runtime/observatory/tests/service/eval_test.dart |
@@ -30,12 +30,11 @@ void testFunction() { |
} |
var tests = [ |
- |
-hasStoppedAtBreakpoint, |
+ hasStoppedAtBreakpoint, |
// Evaluate against library, class, and instance. |
-(Isolate isolate) { |
- return isolate.getStack().then((ServiceMap stack) { |
+ (Isolate isolate) { |
+ return isolate.getStack().then((ServiceMap stack) { |
// Make sure we are in the right place. |
expect(stack.type, equals('Stack')); |
expect(stack['frames'].length, greaterThanOrEqualTo(2)); |
@@ -48,30 +47,29 @@ hasStoppedAtBreakpoint, |
List evals = []; |
evals.add(lib.evaluate('globalVar + 5').then((result) { |
- print(result); |
- expect(result.valueAsString, equals('105')); |
- })); |
+ print(result); |
+ expect(result.valueAsString, equals('105')); |
+ })); |
evals.add(lib.evaluate('globalVar + staticVar + 5').then((result) { |
- expect(result.type, equals('Error')); |
- })); |
+ expect(result.type, equals('Error')); |
+ })); |
evals.add(cls.evaluate('globalVar + staticVar + 5').then((result) { |
- print(result); |
- expect(result.valueAsString, equals('1105')); |
- })); |
+ print(result); |
+ expect(result.valueAsString, equals('1105')); |
+ })); |
evals.add(cls.evaluate('this + 5').then((result) { |
- expect(result.type, equals('Error')); |
- })); |
+ expect(result.type, equals('Error')); |
+ })); |
evals.add(instance.evaluate('this + 5').then((result) { |
- print(result); |
- expect(result.valueAsString, equals('10005')); |
- })); |
+ print(result); |
+ expect(result.valueAsString, equals('10005')); |
+ })); |
evals.add(instance.evaluate('this + frog').then((result) { |
- expect(result.type, equals('Error')); |
- })); |
+ expect(result.type, equals('Error')); |
+ })); |
return Future.wait(evals); |
- }); |
-}, |
- |
+ }); |
+ }, |
]; |
main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); |