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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body> 3 <body>
7 <canvas id="canvas" width="200" height="200"></canvas> 4 <canvas id="canvas" width="200" height="200"></canvas>
8 <script src="script-tests/canvas-path-object.js"></script> 5 <script>
6 test(function(t) {
7 assert_equals(typeof document.getElementById, 'function');
8
9 var path = new Path2D();
10 assert_true(path instanceof Path2D);
11 assert_equals(typeof path.closePath, 'function');
12 assert_equals(typeof path.moveTo, 'function');
13 assert_equals(typeof path.lineTo, 'function');
14 assert_equals(typeof path.quadraticCurveTo, 'function');
15 assert_equals(typeof path.bezierCurveTo, 'function');
16 assert_equals(typeof path.arcTo, 'function');
17 assert_equals(typeof path.arc, 'function');
18 assert_equals(typeof path.rect, 'function');
19 assert_equals(typeof path.ellipse, 'function');
20 }, "Ensure that the constructor for Path object and dependent functions exist.") ;
21 </script>
9 </body> 22 </body>
10 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698