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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/canvas-currentPath-crash.js

Issue 226953004: Remove get/set currentPath in canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 that currentPath does not take non-Path v alues.");
2 var ctx = document.createElement('canvas').getContext('2d');
3 ctx.fillStyle = "green";
4 ctx.beginPath();
5 ctx.rect(0,0,100,100);
6
7 ctx.currentPath = null;
8 ctx.currentPath = 0;
9 ctx.currentPath = {};
10 ctx.currentPath = new Array();
11 ctx.currentPath = undefined;
12
13 ctx.fill();
14 var imageData = ctx.getImageData(50, 50, 1, 1);
15 var imgdata = imageData.data;
16 shouldBe("imgdata[0]", "0");
17 shouldBe("imgdata[1]", "128");
18 shouldBe("imgdata[2]", "0");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698