Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Addressing comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html
index 4fde638f390169f4f0880dddf928052cdc7fa593..186c74c07c5e35d2b9448fc47af9808a3e8059e5 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html
@@ -25,7 +25,7 @@ var image = new ImageData(new Uint8ClampedArray(
imageWidth, imageHeight);
var context = document.getElementById("canvas").getContext("2d");
-createImageBitmap(image).then(imageBitmap => {
+createImageBitmap(image, {colorSpaceConversion: "none"}).then(imageBitmap => {
bitmapWidth = imageBitmap.width;
bitmapHeight = imageBitmap.height;
shouldBe("bitmapWidth", "imageWidth");
@@ -42,7 +42,7 @@ createImageBitmap(image).then(imageBitmap => {
newImageBitmap = imageBitmap;
// Test createImageBitmap from neutered ImageBitmap
- createImageBitmap(imageBitmap).then(function() {
+ createImageBitmap(imageBitmap, {colorSpaceConversion: "none"}).then(function() {
testFailed("Promise accepted, expected to be rejected");
finishJSTest();
}, () => {

Powered by Google App Engine
This is Rietveld 408576698