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

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

Issue 2701053003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments 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> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3
2 <canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas> 4 <canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas>
3 Test passes if DRT doesn't crash. 5 <body>
4 <script> 6 <script>
5 var can = document.querySelector("#can"); 7 test(function(t) {
6 var ctx = can.getContext("2d"); 8 var can = document.querySelector("#can");
7 ctx.fillStyle = "green"; 9 var ctx = can.getContext("2d");
8 ctx.fillRect(0, 0, 300, 300); 10 ctx.fillStyle = "green";
9 document.body.offsetTop; 11 ctx.fillRect(0, 0, 300, 300);
10 can.width = 300; 12 document.body.offsetTop;
11 if (window.testRunner) 13 can.width = 300;
12 testRunner.dumpAsText(); 14 }, "Test passes if no crash.");
13 </script> 15 </script>
16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698