Title: [89351] trunk/LayoutTests
Revision
89351
Author
senorbla...@chromium.org
Date
2011-06-21 06:49:57 -0700 (Tue, 21 Jun 2011)

Log Message

2011-06-20  Stephen White  <senorbla...@chromium.org>

        Reviewed by James Robinson.

        New test for patch introduced in r89250
        https://bugs.webkit.org/show_bug.cgi?id=63016

        * fast/canvas/script-tests/text-globalAlpha.js: Added.
        * fast/canvas/text-globalAlpha-expected.txt: Added.
        * fast/canvas/text-globalAlpha.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (89350 => 89351)


--- trunk/LayoutTests/ChangeLog	2011-06-21 13:25:07 UTC (rev 89350)
+++ trunk/LayoutTests/ChangeLog	2011-06-21 13:49:57 UTC (rev 89351)
@@ -1,3 +1,14 @@
+2011-06-20  Stephen White  <senorbla...@chromium.org>
+
+        Reviewed by James Robinson.
+
+        New test for patch introduced in r89250
+        https://bugs.webkit.org/show_bug.cgi?id=63016
+
+        * fast/canvas/script-tests/text-globalAlpha.js: Added.
+        * fast/canvas/text-globalAlpha-expected.txt: Added.
+        * fast/canvas/text-globalAlpha.html: Added.
+
 2011-06-21  Vsevolod Vlasov  <vse...@chromium.org>
 
         Reviewed by Pavel Feldman.

Added: trunk/LayoutTests/fast/canvas/script-tests/text-globalAlpha.js (0 => 89351)


--- trunk/LayoutTests/fast/canvas/script-tests/text-globalAlpha.js	                        (rev 0)
+++ trunk/LayoutTests/fast/canvas/script-tests/text-globalAlpha.js	2011-06-21 13:49:57 UTC (rev 89351)
@@ -0,0 +1,11 @@
+description("Ensure that globalAlpha is applied correctly to text.");
+var canvas = document.createElement('canvas');
+var ctx = canvas.getContext('2d');
+ctx.fillStyle = "black";
+ctx.globalAlpha = 0.5;
+ctx.font = "50px Arial";
+ctx.fillText("A",50,50);
+var imageData = ctx.getImageData(63, 22, 1, 1);
+var imgdata = imageData.data;
+shouldBeTrue("imgdata[3] == 127 || imgdata[3] == 128");
+var successfullyParsed = true;
Property changes on: trunk/LayoutTests/fast/canvas/script-tests/text-globalAlpha.js
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/canvas/text-globalAlpha-expected.txt (0 => 89351)


--- trunk/LayoutTests/fast/canvas/text-globalAlpha-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/canvas/text-globalAlpha-expected.txt	2011-06-21 13:49:57 UTC (rev 89351)
@@ -0,0 +1,10 @@
+Ensure that globalAlpha is applied correctly to text.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS imgdata[3] == 127 || imgdata[3] == 128 is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/fast/canvas/text-globalAlpha-expected.txt
___________________________________________________________________

Added: svn:eol-style

Added: trunk/LayoutTests/fast/canvas/text-globalAlpha.html (0 => 89351)


--- trunk/LayoutTests/fast/canvas/text-globalAlpha.html	                        (rev 0)
+++ trunk/LayoutTests/fast/canvas/text-globalAlpha.html	2011-06-21 13:49:57 UTC (rev 89351)
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<link rel="stylesheet" href=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src=""
+<script src=""
+</body>
+</html>
Property changes on: trunk/LayoutTests/fast/canvas/text-globalAlpha.html
___________________________________________________________________

Added: svn:eol-style

_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to