| 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 test.completion.support; | 5 library test.completion.support; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
| 11 | 11 |
| 12 import 'completion_test_support.dart'; | 12 import 'completion_test_support.dart'; |
| 13 import 'utils.dart'; | |
| 14 | 13 |
| 15 main() { | 14 main() { |
| 16 initializeTestEnvironment(); | |
| 17 CompletionTestBuilder builder = new CompletionTestBuilder(); | 15 CompletionTestBuilder builder = new CompletionTestBuilder(); |
| 18 builder.buildAll(); | 16 builder.buildAll(); |
| 19 } | 17 } |
| 20 | 18 |
| 21 /** | 19 /** |
| 22 * A builder that builds the completion tests. | 20 * A builder that builds the completion tests. |
| 23 */ | 21 */ |
| 24 class CompletionTestBuilder { | 22 class CompletionTestBuilder { |
| 25 /** | 23 /** |
| 26 * Number of tests that have been built that are expected to pass. | 24 * Number of tests that have been built that are expected to pass. |
| (...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2978 } else { | 2976 } else { |
| 2979 ++expectedPassCount; | 2977 ++expectedPassCount; |
| 2980 test(testName, () { | 2978 test(testName, () { |
| 2981 CompletionTestCase test = new CompletionTestCase(); | 2979 CompletionTestCase test = new CompletionTestCase(); |
| 2982 return test.runTest(spec, extraFiles); | 2980 return test.runTest(spec, extraFiles); |
| 2983 }); | 2981 }); |
| 2984 } | 2982 } |
| 2985 } | 2983 } |
| 2986 } | 2984 } |
| 2987 } | 2985 } |
| OLD | NEW |