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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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/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);

Powered by Google App Engine
This is Rietveld 408576698