-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wptrunner] Implement
--leak-check
for Blink-based browsers (#47850)
... to support Chromium CI testing needs. * Introduce `LeakProtocolPart`, an optional API that lets wptrunner check for leaks programmatically. The default implementation checks that navigating to `about:blank` after a test cleans up the DOM objects it created. * For browsers that implement `LeakProtocolPart`, the base WebDriver executors run the leak check after each test and report the results as an extra test result field named `leak_counters`. * Currently, the only implementers of `LeakProtocolPart` are ChromeDriver-based browsers, which use a nonstandard Chrome DevTools Protocol method [0] to count DOM objects. For those browsers, a leak is coerced to CRASH to report the result appropriately and induce a browser restart. [0]: https://chromedevtools.github.io/devtools-protocol/tot/Memory/#method-getDOMCountersForLeakDetection See Also: https://crbug.com/40887057
- Loading branch information
1 parent
eb162cb
commit 980adbd
Showing
5 changed files
with
114 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters