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

Unified Diff: LayoutTests/fast/canvas/drawImageFromRect_withToDataURLAsSource.html

Issue 408813007: Remove non-standard API entry points in CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove some unnecessary mac/virtual/gpu baselines Created 6 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: LayoutTests/fast/canvas/drawImageFromRect_withToDataURLAsSource.html
diff --git a/LayoutTests/fast/canvas/drawImageFromRect_withToDataURLAsSource.html b/LayoutTests/fast/canvas/drawImageFromRect_withToDataURLAsSource.html
deleted file mode 100644
index 04512ef7af777d4e88effefc0d785a676f0e396d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/canvas/drawImageFromRect_withToDataURLAsSource.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
-<script>
-
-function init()
-{
- if (window.testRunner)
- window.testRunner.dumpAsText();
-
- var imgCanvas = document.getElementById("c1");
- var imgCanvas2 = document.getElementById("c2");
-
- var imgCtx = imgCanvas.getContext("2d");
- var imgCtx2 = imgCanvas2.getContext("2d");
- imgCtx.fillStyle = '#0f0';
- imgCtx.fillRect(0,0,32,32);
-
- var newImage = new Image();
- newImage.src = imgCanvas.toDataURL();
-
- imgCtx2.fillStyle = '#0f0';
- imgCtx2.fillRect(0,0,32,32);
- imgCtx2.drawImageFromRect(newImage,
- 0, 1, 1, 1,
- 0, 0, 32, 32, 'source-over');
-
- var result = document.getElementById("result");
- var data = imgCtx2.getImageData(0,0,1,1).data;
- var red = data[0];
- var green = data[1];
- var blue = data[2];
- var alpha = data[3];
- if (red != 0 || green != 255 || blue != 0 || alpha != 255)
- result.innerHTML = "FAILED";
- else
- result.innerHTML = "PASSED";
-}
-
-</script>
-</head>
-<body onload="init()">
-<canvas id="c1" width="32px" height="32px"></canvas>
-<canvas id="c2" width="32px" height="32px"></canvas>
-<a>This test exercises a webkit specific canvas routine drawImageFromRect. This test should pass and never crash. <rdar://problem/9125032> </a>
-<a id="result"></a>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698