Skip to content

Commit

Permalink
Always output all missing tests, now that <wpt hidden can silence the…
Browse files Browse the repository at this point in the history
… message. Fixes #2213
  • Loading branch information
tabatkins committed Jan 14, 2022
1 parent aaeba89 commit f965859
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions bikeshed/wpt/wptElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,10 @@ def checkForOmittedTests(pathPrefix, testData, seenTestNames):
unseenTests.append(testPath)
if unseenTests:
numTests = len(unseenTests)
if numTests < 10:
warn(
f"There are {numTests} WPT tests underneath your path prefix '{pathPrefix}' that aren't in your document and must be added:\n"
+ "\n".join(" " + path for path in sorted(unseenTests)),
)
else:
warn(
f"There are {numTests} WPT tests (too many to display individually) underneath your path prefix '{pathPrefix}' that aren't in your document."
)
warn(
f"There are {numTests} WPT tests underneath your path prefix '{pathPrefix}' that aren't in your document and must be added. (Use a <wpt hidden> if you don't actually want them in your document.)\n"
+ "\n".join(" " + path for path in sorted(unseenTests)),
)


def loadTestData(doc):
Expand Down

0 comments on commit f965859

Please sign in to comment.