Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/canvas/transformed-canvas-reset.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/transformed-canvas-reset.html b/third_party/WebKit/LayoutTests/fast/canvas/transformed-canvas-reset.html |
| index 14c7461451ec3c085935cb84920adab4b0c8629a..d2f94adb41e75146dea46bc64cde64c348b7d4ca 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/canvas/transformed-canvas-reset.html |
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/transformed-canvas-reset.html |
| @@ -1,13 +1,16 @@ |
| -<!DOCTYPE html> |
| +<script src="../../resources/testharness.js"></script> |
| +<script src="../../resources/testharnessreport.js"></script> |
| + |
| <canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas> |
| -Test passes if DRT doesn't crash. |
| +<body> |
| <script> |
| -var can = document.querySelector("#can"); |
| -var ctx = can.getContext("2d"); |
| -ctx.fillStyle = "green"; |
| -ctx.fillRect(0, 0, 300, 300); |
| -document.body.offsetTop; |
| -can.width = 300; |
| -if (window.testRunner) |
| - testRunner.dumpAsText(); |
| +test(function(t) { |
| + var can = document.querySelector("#can"); |
| + var ctx = can.getContext("2d"); |
| + ctx.fillStyle = "green"; |
| + ctx.fillRect(0, 0, 300, 300); |
| + document.body.offsetTop; |
| + can.width = 300; |
| +}, "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.
|
| </script> |
| +</body> |