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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/arc360.html

Issue 2671853004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections 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/arc360.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/arc360.html b/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
index 139bc779ff5f87bdb4f4f1070729cc918731f470..1d4704aaf49317d951cfccd6d467cbe459c3f853 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/arc360.html
@@ -1,18 +1,16 @@
-<body>
-<p>Test canvas arc() start / end points when the arc is >= 360 degrees. The result should be a circle with two line segments connected to the left hand side, towards the top left and bottom left corners.
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<canvas id="mycanvas" width="400" height="400"></canvas>
<script>
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-
-var canvas = document.getElementById('mycanvas');
-var ctx = canvas.getContext('2d');
-var cx = 200, cy = 200, radius = 100;
-ctx.lineWidth = 10;
-ctx.beginPath();
-ctx.moveTo(0, 100);
-ctx.arc(cx, cy, radius, -Math.PI, Math.PI, false);
-ctx.lineTo(0, 300);
-ctx.stroke();
+test(function(t) {
+ var canvas = document.getElementById('mycanvas');
+ var ctx = canvas.getContext('2d');
+ var cx = 200, cy = 200, radius = 100;
+ ctx.lineWidth = 10;
+ ctx.beginPath();
+ ctx.moveTo(0, 100);
+ ctx.arc(cx, cy, radius, -Math.PI, Math.PI, false);
+ ctx.lineTo(0, 300);
+ ctx.stroke();
+}, 'Test canvas arc() start / end points when the arc is >= 360 degrees. The result should be a circle with two line segments connected to the left hand side, towards the top left and bottom left corners.');
</script>
-</body>

Powered by Google App Engine
This is Rietveld 408576698