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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-to-canvas.html

Issue 2693043012: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-to-canvas-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head> 3
4 <script src="../../resources/js-test.js"></script> 4 <script>
5 </head> 5 test(function(t) {
6 <body> 6
7 <script src="script-tests/canvas-to-canvas.js"></script> 7 var canvas = document.createElement('canvas');
8 </body> 8 var ctx = canvas.getContext('2d');
9 </html> 9
10 ctx.lineWidth = 10;
11 ctx.beginPath();
12 ctx.strokeStyle = 'green';
13 ctx.strokeRect(0, 0, 100, 100);
14
15 var ctx2 = document.createElement('canvas').getContext('2d');
16
17 ctx2.fillStyle = 'red';
18 ctx2.fillRect(0, 0, 100, 100);
19 ctx2.drawImage(canvas, 0, 0);
20 assert_array_equals(ctx2.getImageData(0, 0, 1, 1).data.slice(0,3), [0, 128, 0]);
21
22 }, "Test to ensure that canvas-to-canvas drawImage after a stroked rect works co rrectly.");
23 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-to-canvas-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698