| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library trydart.test_case; | 5 library trydart.test_case; |
| 6 | 6 |
| 7 import 'dart:html' show | 7 import 'dart:html' show |
| 8 document; | 8 document; |
| 9 | 9 |
| 10 import 'dart:async'; | 10 import 'dart:async'; |
| 11 | 11 |
| 12 import '../../pkg/async_helper/lib/async_helper.dart'; | 12 import 'package:async_helper/async_helper.dart'; |
| 13 | 13 |
| 14 typedef void VoidFunction(); | 14 typedef void VoidFunction(); |
| 15 | 15 |
| 16 class TestCase { | 16 class TestCase { |
| 17 final String description; | 17 final String description; |
| 18 final VoidFunction setup; | 18 final VoidFunction setup; |
| 19 final VoidFunction validate; | 19 final VoidFunction validate; |
| 20 | 20 |
| 21 TestCase(this.description, this.setup, this.validate); | 21 TestCase(this.description, this.setup, this.validate); |
| 22 } | 22 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 print('${test.description}\nDone.'); | 52 print('${test.description}\nDone.'); |
| 53 iterateTests(iterator); | 53 iterateTests(iterator); |
| 54 }); | 54 }); |
| 55 } else { | 55 } else { |
| 56 completer.complete(null); | 56 completer.complete(null); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 iterateTests(tests.iterator); | 60 iterateTests(tests.iterator); |
| 61 } | 61 } |
| OLD | NEW |