Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-defaultpng.html |
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-defaultpng.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-defaultpng.html |
deleted file mode 100644 |
index cbc40e3afcf2c9e86e65d3c31acf7be12c6bd6a5..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-defaultpng.html |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-<script src = "../../../../resources/js-test.js"></script> |
-<script type = 'text/javascript'> |
-jsTestIsAsync = true; |
-description("Test that verifies whether the image data survives the toBlob process after async image encoding"); |
- |
-if (window.testRunner) { |
- testRunner.dumpAsText(); |
- testRunner.waitUntilDone(); |
-} |
- |
-var canvas = document.createElement("canvas"); |
-var ctx = canvas.getContext("2d"); |
-ctx.fillStyle = "#FF0000"; |
-ctx.fillRect(0, 0, 150, 75); |
-var canvas2 = document.createElement("canvas"); |
-var ctx2 = canvas2.getContext("2d"); |
- |
-var newImg = new Image(); |
-newImg.onload = function() { |
- // 300x150 is the default size of the canvas, which is the source of the newImg. |
- ctx2.drawImage(newImg, 0, 0, 300, 150); |
- |
- var imageData1 = ctx.getImageData(0, 0, 150, 75).data; |
- var imageData2 = ctx2.getImageData(0, 0, 150, 75).data; |
- var imageMatched = true; |
- for (var i = 1; i < imageData1.length; i++) |
- { |
- if (imageData1[i]!=imageData2[i]) |
- { |
- imageMatched = false; |
- break; |
- } |
- } |
- if (imageMatched) |
- testPassed("image data survives through the toBlob and PNG Image encoder"); |
- else |
- testFailed("image data does not survive through the toBlob and PNG Image encoder"); |
- |
- finishJSTest(); |
-} |
- |
-canvas.toBlob(function(blob) { |
- url = URL.createObjectURL(blob); |
- newImg.src = url; |
-}); |
- |
-</script> |