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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html

Issue 1756963003: Add "premultiply" in ImageBitmapOptions enum PremultiplyAlpha (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change parseOptions Created 4 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
index 753ef90ed0b841bb0031b54dccc6d7c2407112f7..a08367b47a2d35e373f697aa3dbbdf1ddca49f4b 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options.html
@@ -51,10 +51,10 @@ function clearContext() {
var bitmap;
var video;
var imageOrientationOptions = ["none", "flipY", "invalid"];
-var premultiplyAlphaOptions = ["default", "none", "invalid"];
-var optionIndexArray = [[0, 0], [0, 1], [0, 2],
- [1, 0], [1, 1], [1, 2],
- [2, 0], [2, 1], [2, 2]];
+var premultiplyAlphaOptions = ["default", "none", "premultiply", "invalid"];
+var optionIndexArray = [[0, 0], [0, 1], [0, 2], [0, 3],
+ [1, 0], [1, 1], [1, 2], [1, 3],
+ [2, 0], [2, 1], [2, 2], [2, 3]];
var optionIndex = 0;
var canvas = document.createElement("canvas");
@@ -98,8 +98,7 @@ function videoLoaded() {
videoLoaded();
}, function(ex) {
// when the options are invalid, we expect the promise to be rejected.
- if ((imageOrientationOptions[optionIndex1] != "none" && imageOrientationOptions[optionIndex1] != "flipY") ||
- (premultiplyAlphaOptions[optionIndex2] != "default" && premultiplyAlphaOptions[optionIndex2] != "none")) {
+ if (imageOrientationOptions[optionIndex1] == "invalid" || premultiplyAlphaOptions[optionIndex2] == "invalid") {
testPassed("createImageBitmap with invalid options are rejected");
optionIndex++;
videoLoaded();
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-drawImage-video-with-options-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698