Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / dom / canvas / test / test_bug856472.html
blob6cfad972f7226726ffc721e0c136eef64f6dcf30
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 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">
16 </div>
17 <pre id="test">
18 <script>
19 /** Test for Bug 856472 **/
21 var c = document.createElement("canvas");
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>