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

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

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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 86598f970f74143dd447315f65b569df09a67f53..d41a70ba5590c99a2c469c7ed37947fb9a6bde78 100644
--- a/runtime/observatory/tests/service/eval_test.dart
+++ b/runtime/observatory/tests/service/eval_test.dart
@@ -30,11 +30,12 @@ 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));
@@ -47,29 +48,30 @@ var tests = [
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