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

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

Issue 2679083003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Adding virtual/gpu/fast/canvas/canvas-imageSmoothingQuality.html to TestExpectations 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-fillstyle.js"></script> 5 <script>
6 test(function(t) {
7 var ctx = document.getElementById('canvas').getContext('2d');
8 ctx.fillStyle = 'rgb(0, 255, 0)';
9 ctx.fillStyle = 'nonsense';
10 ctx.fillRect(0, 0, 200, 200);
11 var imageData = ctx.getImageData(0, 0, 200, 200);
12 var imgdata = imageData.data;
13 assert_equals(imgdata[4], 0);
14 assert_equals(imgdata[5], 255);
15 assert_equals(imgdata[6], 0);
16 }, 'Verify correct behaviour of canvas on an invalid fillStyle()');
17 </script>
9 </body> 18 </body>
10 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698