|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=753758 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 753758</title> |
|
8 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
10 </head> |
|
11 <body> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=753758">Mozilla Bug 753758</a> |
|
13 <p id="display"></p> |
|
14 <div id="content" style="display: none"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script type="application/javascript"> |
|
19 |
|
20 /** Test for Bug 753758 **/ |
|
21 |
|
22 var c = document.createElement("canvas"); |
|
23 |
|
24 var ctx = c.getContext("2d"); |
|
25 ctx.mozFillRule = 'evenodd'; |
|
26 is(ctx.mozFillRule, 'evenodd', 'Initial value must be set to evenodd'); |
|
27 ctx.save(); |
|
28 is(ctx.mozFillRule, 'evenodd', 'fillRule value must be stay evenodd'); |
|
29 ctx.restore(); |
|
30 is(ctx.mozFillRule, 'evenodd', 'fillRule value must be restored to evenodd'); |
|
31 |
|
32 </script> |
|
33 </pre> |
|
34 </body> |
|
35 </html> |