OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="help" href="http://www.w3.org/TR/2013/WD-2dcontext2-20130528/#dom-con
text-2d-setlinedash"> | 4 <link rel="help" href="http://www.w3.org/TR/2013/WD-2dcontext2-20130528/#dom-con
text-2d-setlinedash"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 description("Test that setLineDash converts input argument into a Web IDL sequen
ce"); | 9 description("Test that setLineDash converts input argument into a Web IDL sequen
ce"); |
10 | 10 |
11 var canvas = document.createElement('canvas'); | 11 var canvas = document.createElement('canvas'); |
12 document.body.appendChild(canvas); | 12 document.body.appendChild(canvas); |
13 canvas.setAttribute('width', '700'); | 13 canvas.setAttribute('width', '700'); |
14 canvas.setAttribute('height', '700'); | 14 canvas.setAttribute('height', '700'); |
15 var ctx = canvas.getContext('2d'); | 15 var ctx = canvas.getContext('2d'); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 checkLineDash("Test", true); | 68 checkLineDash("Test", true); |
69 debug("* Test passing a Boolean as input."); | 69 debug("* Test passing a Boolean as input."); |
70 checkLineDash(true, true); | 70 checkLineDash(true, true); |
71 debug("* Test passing null as input."); | 71 debug("* Test passing null as input."); |
72 checkLineDash(null, true); | 72 checkLineDash(null, true); |
73 debug("* Test passing undefined as input."); | 73 debug("* Test passing undefined as input."); |
74 checkLineDash(undefined, true); | 74 checkLineDash(undefined, true); |
75 </script> | 75 </script> |
76 </body> | 76 </body> |
77 </html> | 77 </html> |
OLD | NEW |