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.
Make canvas-createImageBitmap-e_srgb.html run cross-browser
There were harness errors in Edge, Firefox and Safari: https://wpt.fyi/results/html/canvas/element/manual/wide-gamut-canvas/canvas-createImageBitmap-e_srgb.html?run_id=657990001&run_id=659880001&run_id=633480001&run_id=663850001 The cause for that was the convertToBlob call not correctly wrapped in a step in testCreateImageBitmapFromColorManagedBlob. That was only the first of multiple errors fixed here: - not handling image or video decode failures, causing timeouts - failures at the end of testCreateImageBitmapFromColorManagedBlob would not have failed the test because promise rejections were not handled - failing in cryptic ways if ImageData dataUnion isn't supported These issues were fixed while also modernizing the tests to use more modern APIs where available, like img.decode() and fetch(). Change-Id: Ia8d0086a2d216dd291c9429460f8a79f8f4fd1c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359991 Reviewed-by: Wan-Teh Chang <[email protected]> Reviewed-by: Fernando Serboncini <[email protected]> Commit-Queue: Philip Jägenstedt <[email protected]> Cr-Commit-Position: refs/heads/master@{#798674}
- Loading branch information
1 parent
a7a7d48
commit 0833f37
Showing
1 changed file
with
92 additions
and
109 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