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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/winding-enumeration.html

Issue 2311223002: Convert fast/canvas Layouttests to testharness (Closed)
Patch Set: Refactor2 Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/winding-enumeration-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE html>
2 <html> 2 <title>Test CanvasWindingRule enumeration</title>
3 <head> 3
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/testharness.js"></script>
5 </head> 5 <script src="../../resources/testharnessreport.js"></script>
6 <body>
7 6
8 <script> 7 <script>
9 var canvas = document.createElement("canvas"); 8 test(function() {
10 var context = canvas.getContext("2d"); 9 var canvas = document.createElement("canvas");
10 var context = canvas.getContext("2d");
11 11
12 shouldNotThrow("context.fill()"); 12 context.fill();
13 shouldNotThrow("context.fill('nonzero')"); 13 context.fill('nonzero');
14 shouldThrow("context.fill('randomstring')"); 14 assert_throws(new TypeError(), function() { context.fill('randomstring'); }) ;
15 15
16 shouldNotThrow("context.clip()"); 16 context.clip();
17 shouldNotThrow("context.clip('nonzero')"); 17 context.clip('nonzero');
18 shouldThrow("context.clip('randomstring')"); 18 assert_throws(new TypeError(), function() { context.clip('randomstring'); }) ;
19 19
20 shouldNotThrow("context.isPointInPath(0, 0)"); 20 context.isPointInPath(0, 0);
21 shouldNotThrow("context.isPointInPath(0, 0, 'nonzero')"); 21 context.isPointInPath(0, 0, 'nonzero');
22 shouldThrow("context.isPointInPath(0, 0, 'randomstring')"); 22 assert_throws(new TypeError(), function() { context.isPointInPath(0, 0, 'ran domstring'); });
23 </script> 23 });
24 24 </script>
25 </body>
26
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/winding-enumeration-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698