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

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

Issue 2679083003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Removing remained expected.txt files 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>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body> 3 <body>
7 <canvas id="canvas" width="200" height="200"></canvas> 4 <canvas id="canvas" width="200" height="200"></canvas>
8 <script src="canvas-invalid-strokestyle.js"></script> 5 <script>
6 test(function(t) {
7 var ctx = document.getElementById('canvas').getContext('2d');
8 ctx.strokeStyle = 'rgb(0, 255, 0)';
9 ctx.strokeStyle = 'nonsense';
10 ctx.lineWidth = 200;
11 ctx.moveTo(0,100);
12 ctx.lineTo(200,100);
13 ctx.stroke();
14 var imageData = ctx.getImageData(0, 0, 200, 200);
15 var imgdata = imageData.data;
16 assert_equals(imgdata[4], 0);
17 assert_equals(imgdata[5], 255);
18 assert_equals(imgdata[6], 0);
19 }, 'Series of tests to ensure correct behaviour on an invalid strokeStyle()');
Justin Novosad 2017/02/16 15:34:30 Not a series
zakerinasab 2017/02/16 17:48:12 Acknowledged.
20 </script>
9 </body> 21 </body>
10 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698