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

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

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
(Empty)
1 description("Series of tests to ensure correct behaviour on an invalid fillStyle ()");
2 var ctx = document.getElementById('canvas').getContext('2d');
3 ctx.fillStyle = 'rgb(0, 255, 0)';
4 ctx.fillStyle = 'nonsense';
5 ctx.fillRect(0, 0, 200, 200);
6 var imageData = ctx.getImageData(0, 0, 200, 200);
7 var imgdata = imageData.data;
8 shouldBe("imgdata[4]", "0");
9 shouldBe("imgdata[5]", "255");
10 shouldBe("imgdata[6]", "0");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698