| 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 fc0e09fc9e567a37aed2392bd8ca0ca5cd308d0f..31358e4801126bdf970e5893c98a4a57c66c92f7 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,18 +18,17 @@ 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);
|
|
|