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

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

Issue 2343793002: Convert fast/canvas Layouttests to testharness (Closed)
Patch Set: Created 4 years, 3 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> 1 <!DOCTYPE html>
2 <canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas> 2 <title>Test for chromium's canvas on transform property and reset the current co ntext</title>
sivag 2016/09/15 05:31:14 are we still resetting the current context?
Abhishek Kanike 2016/09/15 11:52:56 Sorry the title is misleading. We are not reseting
3 Test passes if DRT doesn't crash. 3 <script src="../../resources/testharness.js"></script>
Srirama 2016/09/15 09:29:55 i think we can leave this test as it is, as it doe
Abhishek Kanike 2016/09/15 11:52:56 Yes we are not using the js-test framework. But ke
4 <script src="../../resources/testharnessreport.js"></script>
5
6 <canvas width=200 height=256 style="transform: translateZ(0)"></canvas>
4 <script> 7 <script>
5 var can = document.querySelector("#can"); 8 test(function() {
6 var ctx = can.getContext("2d"); 9 var can = document.querySelector("canvas");
7 ctx.fillStyle = "green"; 10 var ctx = can.getContext("2d");
8 ctx.fillRect(0, 0, 300, 300); 11 ctx.fillStyle = "green";
9 document.body.offsetTop; 12 ctx.fillRect(0, 0, 300, 300);
10 can.width = 300; 13 document.body.offsetTop;
11 if (window.testRunner) 14 can.width = 300;
12 testRunner.dumpAsText(); 15 });
13 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698