@@ -949,19 +949,19 @@ Future<void> testDart2(Iterable<File> tests) async {
949
949
return CoverageSubprocessLauncher .generateCoverageToFile (File ('lcov.info' ));
950
950
}
951
951
952
- @Task ('Generate docs for dartdoc' )
952
+ @Task ('Generate docs for dartdoc without link-to-remote ' )
953
953
Future <void > testDartdoc () async {
954
954
var launcher = SubprocessLauncher ('test-dartdoc' );
955
955
await launcher.runStreamed (Platform .resolvedExecutable, [
956
956
'--enable-asserts' ,
957
957
'bin/dartdoc.dart' ,
958
958
'--output' ,
959
- dartdocDocsDir.path
959
+ dartdocDocsDir.path,
960
+ '--no-link-to-remote' ,
960
961
]);
961
962
expectFileContains (path.join (dartdocDocsDir.path, 'index.html' ),
962
963
['<title>dartdoc - Dart API docs</title>' ]);
963
- final RegExp object =
964
- RegExp ('Object-class.html">Object</a></li>' , multiLine: true );
964
+ final RegExp object = RegExp ('<li>Object</li>' , multiLine: true );
965
965
expectFileContains (
966
966
path.join (dartdocDocsDir.path, 'dartdoc' , 'ModelElement-class.html' ),
967
967
[object]);
@@ -971,12 +971,11 @@ Future<void> testDartdoc() async {
971
971
Future <void > testDartdocRemote () async {
972
972
var launcher = SubprocessLauncher ('test-dartdoc-remote' );
973
973
final RegExp object = RegExp (
974
- '<a href="https://api.dartlang.org /(dev|stable)/[^/]*/dart-core/Object-class.html">Object</a>' ,
974
+ '<a href="https://api.dart.dev /(dev|stable|beta|edge )/[^/]*/dart-core/Object-class.html">Object</a>' ,
975
975
multiLine: true );
976
976
await launcher.runStreamed (Platform .resolvedExecutable, [
977
977
'--enable-asserts' ,
978
978
'bin/dartdoc.dart' ,
979
- '--link-to-remote' ,
980
979
'--output' ,
981
980
dartdocDocsDir.path
982
981
]);
@@ -1033,8 +1032,8 @@ Future<void> testDartdocFlutterPlugin() async {
1033
1032
path.join (
1034
1033
pluginPackageDocsDir.path, 'testlib' , 'MyAwesomeWidget-class.html' ),
1035
1034
[
1036
- '<a href="https://docs .flutter.io /flutter/widgets/Widget-class.html">Widget</a>' ,
1037
- '<a href="https://docs .flutter.io /flutter/dart-core/Object-class.html">Object</a>'
1035
+ '<a href="https://api .flutter.dev /flutter/widgets/Widget-class.html">Widget</a>' ,
1036
+ '<a href="https://api .flutter.dev /flutter/dart-core/Object-class.html">Object</a>'
1038
1037
]);
1039
1038
}
1040
1039
0 commit comments