forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement TestRendered event for reftests (web-platform-tests#20197)
This is described in RFC #34. The TestRendered event is emitted for reftests with a `reftest-wait` class on the root at the point at which the screenshot would occurs if that class was not present. It provides a hook for test authors to dynamically modify the DOM after the initial layout and paint are complete.
- Loading branch information
Showing
5 changed files
with
69 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html class="reftest-wait"> | ||
<title>Test with reftest-wait</title> | ||
<link rel=match href=green.html> | ||
<style> | ||
:root {background-color:red} | ||
</style> | ||
<script> | ||
document.addEventListener("TestRendered", | ||
function() { | ||
document.documentElement.style.backgroundColor = "green"; | ||
document.documentElement.className = ""; | ||
}); | ||
</script> | ||
</html> |
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
19 changes: 0 additions & 19 deletions
19
tools/wptrunner/wptrunner/executors/reftest-wait_marionette.js
This file was deleted.
Oops, something went wrong.
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