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'; | |
6 | |
7 import 'package:async/async.dart'; | 5 import 'package:async/async.dart'; |
8 import 'package:test/test.dart'; | 6 import 'package:test/test.dart'; |
9 | 7 |
10 import '../utils.dart'; | 8 import '../utils.dart'; |
11 | 9 |
12 void main() { | 10 void main() { |
13 test("runs once before all tests", () { | 11 test("runs once before all tests", () { |
14 return expectTestsPass(() { | 12 return expectTestsPass(() { |
15 var setUpAllRun = false; | 13 var setUpAllRun = false; |
16 setUpAll(() { | 14 setUpAll(() { |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 setUpAll(() => throw "error"); | 313 setUpAll(() => throw "error"); |
316 setUpAll(shouldNotRun); | 314 setUpAll(shouldNotRun); |
317 | 315 |
318 test("test", shouldNotRun); | 316 test("test", shouldNotRun); |
319 }); | 317 }); |
320 | 318 |
321 expect(await engine.run(), isFalse); | 319 expect(await engine.run(), isFalse); |
322 }); | 320 }); |
323 }); | 321 }); |
324 } | 322 } |
OLD | NEW |