OLD | NEW |
---|---|
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 DRT doesn't crash."); |
Justin Novosad
2017/02/21 18:19:59
the name DRT is deprecated. "Test passes if no cr
zakerinasab
2017/02/21 18:34:06
Done.
| |
13 </script> | 15 </script> |
16 </body> | |
OLD | NEW |