OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 validator_test; | 5 library validator_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:json' as json; | 9 import 'dart:json' as json; |
10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
11 | 11 |
12 import '../../../pkg/http/lib/http.dart' as http; | 12 import '../../../pkg/http/lib/http.dart' as http; |
13 import '../../../pkg/http/lib/testing.dart'; | 13 import '../../../pkg/http/lib/testing.dart'; |
14 import '../../../pkg/path/lib/path.dart' as path; | 14 import '../../../pkg/pathos/lib/path.dart' as path; |
15 import '../../../pkg/unittest/lib/unittest.dart'; | 15 import '../../../pkg/unittest/lib/unittest.dart'; |
16 | 16 |
17 import 'test_pub.dart'; | 17 import 'test_pub.dart'; |
18 import '../../pub/entrypoint.dart'; | 18 import '../../pub/entrypoint.dart'; |
19 import '../../pub/io.dart'; | 19 import '../../pub/io.dart'; |
20 import '../../pub/validator.dart'; | 20 import '../../pub/validator.dart'; |
21 import '../../pub/validator/compiled_dartdoc.dart'; | 21 import '../../pub/validator/compiled_dartdoc.dart'; |
22 import '../../pub/validator/dependency.dart'; | 22 import '../../pub/validator/dependency.dart'; |
23 import '../../pub/validator/directory.dart'; | 23 import '../../pub/validator/directory.dart'; |
24 import '../../pub/validator/lib.dart'; | 24 import '../../pub/validator/lib.dart'; |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 }); | 576 }); |
577 | 577 |
578 test('has a README with invalid utf-8', () { | 578 test('has a README with invalid utf-8', () { |
579 dir(appPath, [ | 579 dir(appPath, [ |
580 binaryFile("README", [192]) | 580 binaryFile("README", [192]) |
581 ]).scheduleCreate(); | 581 ]).scheduleCreate(); |
582 expectValidationWarning(utf8Readme); | 582 expectValidationWarning(utf8Readme); |
583 }); | 583 }); |
584 }); | 584 }); |
585 } | 585 } |
OLD | NEW |