@@ -1256,9 +1256,9 @@ Future<void> testDartdocFlutterPlugin() async {
1256
1256
void validateSdkDocs () {
1257
1257
// TODO(jcollins-g): Remove flexibility in library counts once dev build
1258
1258
// includes https://dart-review.googlesource.com/c/sdk/+/93160
1259
- const expectedLibCounts = [ 0 , 1 ] ;
1260
- const expectedSubLibCount = [ 18 , 19 , 20 ] ;
1261
- const expectedTotalCount = [ 19 , 20 ] ;
1259
+ const expectedLibCounts = { 0 , 1 } ;
1260
+ const expectedSubLibCount = { 18 , 19 , 20 } ;
1261
+ const expectedTotalCount = { 18 , 19 , 20 } ;
1262
1262
var indexHtml = joinFile (sdkDocsDir, ['index.html' ]);
1263
1263
if (! indexHtml.existsSync ()) {
1264
1264
fail ('no index.html found for SDK docs' );
@@ -1285,7 +1285,7 @@ void validateSdkDocs() {
1285
1285
sdkDocsDir.listSync ().where ((fs) => fs.path.contains ('dart-' )).length;
1286
1286
if (! expectedTotalCount.contains (libsLength)) {
1287
1287
fail ('docs not generated for all the SDK libraries, '
1288
- 'expected ${ expectedTotalCount + expectedTotalCount } directories, generated $libsLength directories' );
1288
+ 'expected $expectedTotalCount directories, generated $libsLength directories' );
1289
1289
}
1290
1290
log ('$libsLength dart: libraries found' );
1291
1291
0 commit comments