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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-path-object.html

Issue 2689243002: 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/canvas-path-object.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-path-object.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-path-object.html
index 94d4daed12fdd4d9f6cba3b6c3aa365d85f2c2c4..35e41ca31e414c0fde0b9e746804b23085e735ff 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-path-object.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-path-object.html
@@ -1,10 +1,22 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<body>
<canvas id="canvas" width="200" height="200"></canvas>
-<script src="script-tests/canvas-path-object.js"></script>
+<script>
+test(function(t) {
+ assert_equals(typeof document.getElementById, 'function');
+
+ var path = new Path2D();
+ assert_true(path instanceof Path2D);
+ assert_equals(typeof path.closePath, 'function');
+ assert_equals(typeof path.moveTo, 'function');
+ assert_equals(typeof path.lineTo, 'function');
+ assert_equals(typeof path.quadraticCurveTo, 'function');
+ assert_equals(typeof path.bezierCurveTo, 'function');
+ assert_equals(typeof path.arcTo, 'function');
+ assert_equals(typeof path.arc, 'function');
+ assert_equals(typeof path.rect, 'function');
+ assert_equals(typeof path.ellipse, 'function');
+}, "Ensure that the constructor for Path object and dependent functions exist.");
+</script>
</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698