Skip to content

Commit

Permalink
Fix grinder failure message (#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Apr 20, 2021
1 parent 856c613 commit 39a1e54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1267,16 +1267,16 @@ void validateSdkDocs() {
var indexContents = indexHtml.readAsStringSync();
var foundLibs = _findCount(indexContents, ' <li><a href="dart-');
if (!expectedLibCounts.contains(foundLibs)) {
fail(
'expected $expectedTotalCount dart: index.html entries, found $foundLibs');
fail('expected $expectedLibCounts "dart:" index.html entries, found '
'$foundLibs');
}
log('$foundLibs index.html dart: entries found');

var foundSubLibs =
_findCount(indexContents, '<li class="section-subitem"><a href="dart-');
if (!expectedSubLibCount.contains(foundSubLibs)) {
fail(
'expected $expectedSubLibCount dart: index.html entries in categories, found $foundSubLibs');
fail('expected $expectedSubLibCount "dart:" index.html entries in '
'categories, found $foundSubLibs');
}
log('$foundSubLibs index.html dart: entries in categories found');

Expand Down

0 comments on commit 39a1e54

Please sign in to comment.