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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html

Issue 2845193002: Refactor ImageBitmap constructor from ImageData to be color managed
Patch Set: local commit - all working except unpremultiply Created 3 years, 6 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
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html
index b89ba73c432335f4f4c2268f12c156f558584877..8af6c253424b63138161b8174f8e466692154655 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html
@@ -113,42 +113,6 @@ function initializeTestCanvas()
return testCanvas;
}
-// Blob
-promise_test(function() {
- return new Promise((resolve, reject) => {
- var xhr = new XMLHttpRequest();
- xhr.open("GET", 'resources/pattern.png');
- xhr.responseType = 'blob';
- xhr.send();
- xhr.onload = function() {
- resolve(xhr.response);
- };
- }).then(testImageBitmap);
-}, 'createImageBitmap from a Blob with resize option.');
-
-// HTMLCanvasElement
-promise_test(function() {
- var testCanvas = initializeTestCanvas();
- return testImageBitmap(testCanvas);
-}, 'createImageBitmap from a HTMLCanvasElement with resize option.');
-
-// HTMLImageElement
-promise_test(function() {
- return new Promise((resolve, reject) => {
- var image = new Image();
- image.onload = function() {
- resolve(image);
- }
- image.src = 'resources/pattern.png'
- }).then(testImageBitmap);
-}, 'createImageBitmap from a HTMLImageElement with resize option.');
-
-// ImageBitmap
-promise_test(function() {
- var testCanvas = initializeTestCanvas();
- return createImageBitmap(testCanvas).then(testImageBitmap);
-}, 'createImageBitmap from an ImageBitmap with resize option.');
-
// ImageData
promise_test(function() {
var canvas = initializeTestCanvas();

Powered by Google App Engine
This is Rietveld 408576698