File tree 5 files changed +10
-11
lines changed
5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,9 @@ abstract class DartdocTestBase {
36
36
37
37
String get linkPrefix => '$placeholder $libraryName ' ;
38
38
39
- String get dartCoreUrlPrefix =>
40
- 'https://api.dart.dev/stable/2.16.0/dart-core' ;
39
+ String get dartCoreUrlPrefix => 'https://api.dart.dev/stable/3.2.0/dart-core' ;
41
40
42
- String get sdkConstraint => '>=2.15. 0 <3 .0.0' ;
41
+ String get sdkConstraint => '>=3.2. 0 <4 .0.0' ;
43
42
44
43
List <String > get experiments => [];
45
44
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ void main() async {
18
18
const linkPrefix = '$placeholder $libraryName ' ;
19
19
20
20
const intLink =
21
- '<a href="https://api.dart.dev/stable/2.16 .0/dart-core/int-class.html">int</a>' ;
21
+ '<a href="https://api.dart.dev/stable/3.2 .0/dart-core/int-class.html">int</a>' ;
22
22
const stringLink =
23
- '<a href="https://api.dart.dev/stable/2.16 .0/dart-core/String-class.html">String</a>' ;
23
+ '<a href="https://api.dart.dev/stable/3.2 .0/dart-core/String-class.html">String</a>' ;
24
24
25
25
final packageMetaProvider = testPackageMetaProvider;
26
26
final resourceProvider =
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ class C {}
517
517
expect (
518
518
cClass.documentationAsHtml,
519
519
'<p>Reference to '
520
- '<a href="https://api.dart.dev/stable/2.16 .0/dart-core/Enum/index.html">E.index</a>.</p>' ,
520
+ '<a href="https://api.dart.dev/stable/3.2 .0/dart-core/Enum/index.html">E.index</a>.</p>' ,
521
521
);
522
522
}
523
523
@@ -528,7 +528,7 @@ class C {}
528
528
expect (eEnum.instanceFields.map ((f) => f.name), contains ('index' ));
529
529
expect (
530
530
eEnum.instanceFields.named ('index' ).linkedName,
531
- '<a href="https://api.dart.dev/stable/2.16 .0/dart-core/Enum/index.html">index</a>' ,
531
+ '<a href="https://api.dart.dev/stable/3.2 .0/dart-core/Enum/index.html">index</a>' ,
532
532
);
533
533
}
534
534
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import 'package:yaml/yaml.dart' as yaml;
10
10
11
11
export 'package:test_descriptor/test_descriptor.dart' ;
12
12
13
- String buildPubspecText ({String sdkConstraint = '>=2.15. 0 <3 .0.0' }) => '''
13
+ String buildPubspecText ({String sdkConstraint = '>=3.2. 0 <4 .0.0' }) => '''
14
14
name: test_package
15
15
version: 0.0.1
16
16
environment:
@@ -76,9 +76,9 @@ Future<String> createPackage(
76
76
"packages": [
77
77
$packagesInfo
78
78
],
79
- "generated": "2021-09 -14T20:36:04.604099Z",
79
+ "generated": "2024-02 -14T20:36:04.604099Z",
80
80
"generator": "pub",
81
- "generatorVersion": "2.14.1 "
81
+ "generatorVersion": "3.2.0 "
82
82
}
83
83
''' )
84
84
],
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ PackageMetaProvider get testPackageMetaProvider {
161
161
///
162
162
/// Included is a "version" file and an "api_readme.md" file.
163
163
void writeMockSdkFiles (Folder sdkFolder) {
164
- sdkFolder.getChildAssumingFile ('version' ).writeAsStringSync ('2.16 .0' );
164
+ sdkFolder.getChildAssumingFile ('version' ).writeAsStringSync ('3.2 .0' );
165
165
sdkFolder.getChildAssumingFile ('api_readme.md' ).writeAsStringSync (
166
166
'Welcome to the [Dart](https://dart.dev/) API reference documentation' );
167
167
You can’t perform that action at this time.
0 commit comments