|
43 | 43 | },
|
44 | 44 | }
|
45 | 45 |
|
| 46 | +allowed_missing_methods = [ |
| 47 | + "Download.createReadStream", |
| 48 | + "Browser.startTracing", |
| 49 | + "Browser.stopTracing", |
| 50 | + "Logger.log", |
| 51 | + "BrowserContext.setHTTPCredentials", # deprecated |
| 52 | + "BrowserContext.serviceWorkers", # CR only (and the following) |
| 53 | + "BrowserContext.backgroundPages", |
| 54 | + "Browser.newBrowserCDPSession", |
| 55 | + "Page.coverage", |
| 56 | + "Coverage.startCSSCoverage", |
| 57 | + "Coverage.stopCSSCoverage", |
| 58 | + "Coverage.startJSCoverage", |
| 59 | + "Coverage.stopJSCoverage", |
| 60 | + "BrowserContext.newCDPSession", |
| 61 | + "Logger.isEnabled", |
| 62 | + "BrowserServer.kill", # not relevant for RPC clients (and the following) |
| 63 | + "BrowserType.launchServer", |
| 64 | + "BrowserServer.close", |
| 65 | + "BrowserServer.process", |
| 66 | + "BrowserServer.wsEndpoint", |
| 67 | +] |
| 68 | + |
46 | 69 |
|
47 | 70 | class DocumentationProvider:
|
48 | 71 | def __init__(self) -> None:
|
@@ -380,10 +403,15 @@ def print_remainder(self) -> None:
|
380 | 403 | if method["kind"] == "event":
|
381 | 404 | continue
|
382 | 405 | entry = f"{class_name}.{method_name}"
|
383 |
| - if entry not in self.printed_entries: |
| 406 | + if ( |
| 407 | + entry not in self.printed_entries |
| 408 | + and entry not in allowed_missing_methods |
| 409 | + ): |
384 | 410 | remainders.add(f"Method not implemented: {entry}")
|
385 | 411 | for remainder in remainders:
|
386 | 412 | print(remainder, file=stderr)
|
| 413 | + if len(remainders) > 0: |
| 414 | + exit(1) |
387 | 415 |
|
388 | 416 |
|
389 | 417 | if __name__ == "__main__":
|
|
0 commit comments