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 'package:unittest/src/backend/state.dart'; | 5 import 'package:test/src/backend/state.dart'; |
6 import 'package:unittest/unittest.dart'; | 6 import 'package:test/test.dart'; |
7 | 7 |
8 import '../utils.dart'; | 8 import '../utils.dart'; |
9 | 9 |
10 void main() { | 10 void main() { |
11 group("supports a function with this many arguments:", () { | 11 group("supports a function with this many arguments:", () { |
12 test("0", () { | 12 test("0", () { |
13 var callbackRun = false; | 13 var callbackRun = false; |
14 return runTest(() { | 14 return runTest(() { |
15 expectAsync(() { | 15 expectAsync(() { |
16 callbackRun = true; | 16 callbackRun = true; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 caughtError = true; | 319 caughtError = true; |
320 } | 320 } |
321 }).then((liveTest) { | 321 }).then((liveTest) { |
322 expectTestFailed(liveTest, 'oh no'); | 322 expectTestFailed(liveTest, 'oh no'); |
323 expect(returnValue, isNull); | 323 expect(returnValue, isNull); |
324 expect(caughtError, isFalse); | 324 expect(caughtError, isFalse); |
325 }); | 325 }); |
326 }); | 326 }); |
327 }); | 327 }); |
328 } | 328 } |
OLD | NEW |