| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:fake_async/fake_async.dart'; | 7 import 'package:fake_async/fake_async.dart'; |
| 8 import 'package:unittest/src/backend/invoker.dart'; | 8 import 'package:test/src/backend/invoker.dart'; |
| 9 import 'package:unittest/src/backend/metadata.dart'; | 9 import 'package:test/src/backend/metadata.dart'; |
| 10 import 'package:unittest/src/backend/state.dart'; | 10 import 'package:test/src/backend/state.dart'; |
| 11 import 'package:unittest/src/backend/suite.dart'; | 11 import 'package:test/src/backend/suite.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:test/test.dart'; |
| 13 | 13 |
| 14 import '../utils.dart'; | 14 import '../utils.dart'; |
| 15 | 15 |
| 16 void main() { | 16 void main() { |
| 17 var suite; | 17 var suite; |
| 18 setUp(() { | 18 setUp(() { |
| 19 lastState = null; | 19 lastState = null; |
| 20 suite = new Suite([]); | 20 suite = new Suite([]); |
| 21 }); | 21 }); |
| 22 | 22 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 expect(liveTest.onPrint.take(2).toList(), | 504 expect(liveTest.onPrint.take(2).toList(), |
| 505 completion(equals(["Hello,", "world!"]))); | 505 completion(equals(["Hello,", "world!"]))); |
| 506 | 506 |
| 507 return liveTest.run(); | 507 return liveTest.run(); |
| 508 }, prints(isEmpty)); | 508 }, prints(isEmpty)); |
| 509 }); | 509 }); |
| 510 } | 510 } |
| 511 | 511 |
| 512 LocalTest _localTest(body(), {tearDown()}) => | 512 LocalTest _localTest(body(), {tearDown()}) => |
| 513 new LocalTest("test", new Metadata(), body, tearDown: tearDown); | 513 new LocalTest("test", new Metadata(), body, tearDown: tearDown); |
| OLD | NEW |