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

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: 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..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>

Powered by Google App Engine
This is Rietveld 408576698