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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/text-globalAlpha.js

Issue 2343793002: Convert fast/canvas Layouttests to testharness (Closed)
Patch Set: Refactor3 Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/script-tests/translate-text.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 description("Ensure that globalAlpha is applied correctly to text.");
2 var canvas = document.createElement('canvas');
3 var ctx = canvas.getContext('2d');
4 ctx.fillStyle = "black";
5 ctx.globalAlpha = 0.5;
6 ctx.font = "50px Arial";
7 ctx.fillText("A",50,50);
8 var imageData = ctx.getImageData(63, 22, 1, 1);
9 var imgdata = imageData.data;
10 shouldBeTrue("imgdata[3] == 127 || imgdata[3] == 128");
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/script-tests/translate-text.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698