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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-stroke-empty-fill.html

Issue 2693193003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head> 3 <script>
4 <script src="../../resources/js-test.js"></script> 4 test(function(t) {
5 </head> 5 var ctx = document.createElement('canvas').getContext('2d');
6 <body> 6
7 <script src="canvas-stroke-empty-fill.js"></script> 7 ctx.fillStyle = 'rgba(0,0,0,0)';
8 </body> 8 ctx.strokeStyle = 'green';
9 </html> 9 ctx.lineWidth = 200;
10 ctx.moveTo(0,100);
11 ctx.lineTo(200,100);
12 ctx.stroke();
13 var imageData = ctx.getImageData(1, 0, 1, 1).data;
14 assert_array_equals(imageData.slice(0, 3), [0, 128, 0]);
15 }, 'Verify correct behaviour for stroke() on an empty fillStyle() (alpha=0).');
16
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698