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

Unified 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 side-by-side diff with in-line comments
Download patch
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..d954946ba859c83adacb088a1604bb4985a76936 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 no crash.");
</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698