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..6fd8b3ca216e4e318f1ea6949c74b62124661805 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> |
| -<canvas id="can" width=200 height=256 style="transform: translateZ(0)"></canvas> |
| -Test passes if DRT doesn't crash. |
| +<title>Test for chromium's canvas on transform property and reset the current context</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
|
| +<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
|
| +<script src="../../resources/testharnessreport.js"></script> |
| + |
| +<canvas width=200 height=256 style="transform: translateZ(0)"></canvas> |
| <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() { |
| + var can = document.querySelector("canvas"); |
| + var ctx = can.getContext("2d"); |
| + ctx.fillStyle = "green"; |
| + ctx.fillRect(0, 0, 300, 300); |
| + document.body.offsetTop; |
| + can.width = 300; |
| +}); |
| </script> |