|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=856472 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 856472</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=856472">Mozilla Bug 856472</a> |
|
13 <p id="display"></p> |
|
14 <div id="content" style="display: none"> |
|
15 |
|
16 </div> |
|
17 <pre id="test"> |
|
18 <script> |
|
19 /** Test for Bug 856472 **/ |
|
20 |
|
21 var c = document.createElement("canvas"); |
|
22 |
|
23 var ctx = c.getContext("2d"); |
|
24 var pattern = ctx.createPattern(c, null); |
|
25 pattern.x = 1; |
|
26 ctx.fillStyle = pattern; |
|
27 is(ctx.fillStyle.x, 1, "CanvasPattern stored as fillstyle drops expandos"); |
|
28 </script> |
|
29 </pre> |
|
30 </body> |
|
31 </html> |