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 'package:http/http.dart' as http; |
13 import '../../../pkg/http/lib/testing.dart'; | 13 import 'package:http/testing.dart'; |
14 import '../../../pkg/pathos/lib/path.dart' as path; | 14 import 'package:pathos/path.dart' as path; |
15 import '../../../pkg/scheduled_test/lib/scheduled_test.dart'; | 15 import 'package:scheduled_test/scheduled_test.dart'; |
16 | 16 |
17 import '../../pub/entrypoint.dart'; | 17 import '../../pub/entrypoint.dart'; |
18 import '../../pub/io.dart'; | 18 import '../../pub/io.dart'; |
19 import '../../pub/validator.dart'; | 19 import '../../pub/validator.dart'; |
20 import '../../pub/validator/compiled_dartdoc.dart'; | 20 import '../../pub/validator/compiled_dartdoc.dart'; |
21 import '../../pub/validator/dependency.dart'; | 21 import '../../pub/validator/dependency.dart'; |
22 import '../../pub/validator/directory.dart'; | 22 import '../../pub/validator/directory.dart'; |
23 import '../../pub/validator/lib.dart'; | 23 import '../../pub/validator/lib.dart'; |
24 import '../../pub/validator/license.dart'; | 24 import '../../pub/validator/license.dart'; |
25 import '../../pub/validator/name.dart'; | 25 import '../../pub/validator/name.dart'; |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 }); | 575 }); |
576 | 576 |
577 integration('has a README with invalid utf-8', () { | 577 integration('has a README with invalid utf-8', () { |
578 d.dir(appPath, [ | 578 d.dir(appPath, [ |
579 d.binaryFile("README", [192]) | 579 d.binaryFile("README", [192]) |
580 ]).create(); | 580 ]).create(); |
581 expectValidationWarning(utf8Readme); | 581 expectValidationWarning(utf8Readme); |
582 }); | 582 }); |
583 }); | 583 }); |
584 } | 584 } |
OLD | NEW |