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

Unified Diff: runtime/observatory/tests/service/allocations_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/allocations_test.dart
diff --git a/runtime/observatory/tests/service/allocations_test.dart b/runtime/observatory/tests/service/allocations_test.dart
index 31358e4801126bdf970e5893c98a4a57c66c92f7..fc0e09fc9e567a37aed2392bd8ca0ca5cd308d0f 100644
--- a/runtime/observatory/tests/service/allocations_test.dart
+++ b/runtime/observatory/tests/service/allocations_test.dart
@@ -9,8 +9,8 @@ import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
-class Foo {}
-
+class Foo {
+}
List<Foo> foos;
void script() {
@@ -18,17 +18,18 @@ void script() {
}
var tests = [
- (Isolate isolate) => isolate.rootLibrary.load().then((Library lib) {
- expect(lib.uri.endsWith('allocations_test.dart'), isTrue);
- expect(lib.classes.length, equals(1));
- return lib.classes.first.load().then((Class fooClass) {
- expect(fooClass.name, equals('Foo'));
- expect(
- fooClass.newSpace.current.instances +
- fooClass.oldSpace.current.instances,
- equals(3));
- });
- }),
+
+(Isolate isolate) =>
+ isolate.rootLibrary.load().then((Library lib) {
+ expect(lib.uri.endsWith('allocations_test.dart'), isTrue);
+ expect(lib.classes.length, equals(1));
+ return lib.classes.first.load().then((Class fooClass) {
+ expect(fooClass.name, equals('Foo'));
+ expect(fooClass.newSpace.current.instances +
+ fooClass.oldSpace.current.instances, equals(3));
+ });
+}),
+
];
main(args) => runIsolateTests(args, tests, testeeBefore: script);

Powered by Google App Engine
This is Rietveld 408576698