| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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:io'; | 5 import 'dart:io'; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/services/correction/strings.dart'; | 7 import 'package:analyzer_plugin/src/utilities/string_utilities.dart'; |
| 8 import 'package:path/path.dart' as path; | 8 import 'package:path/path.dart' as path; |
| 9 import 'package:test/test.dart'; | 9 import 'package:test/test.dart'; |
| 10 | 10 |
| 11 import '../../tool/spec/api.dart'; | 11 import '../../tool/spec/api.dart'; |
| 12 import '../../tool/spec/from_html.dart'; | 12 import '../../tool/spec/from_html.dart'; |
| 13 | 13 |
| 14 /// Define tests to fail if there's no mention in the coverage file. | 14 /// Define tests to fail if there's no mention in the coverage file. |
| 15 main() { | 15 main() { |
| 16 Api api; | 16 Api api; |
| 17 File coverageFile; | 17 File coverageFile; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // validate no unexpected domains | 93 // validate no unexpected domains |
| 94 group('integration coverage', () { | 94 group('integration coverage', () { |
| 95 test('no unexpected domains', () { | 95 test('no unexpected domains', () { |
| 96 for (String domain in coveredDomains) { | 96 for (String domain in coveredDomains) { |
| 97 expect(api.domains.map((d) => d.name), contains(domain)); | 97 expect(api.domains.map((d) => d.name), contains(domain)); |
| 98 } | 98 } |
| 99 }); | 99 }); |
| 100 }); | 100 }); |
| 101 } | 101 } |
| OLD | NEW |