chang.shu@nokia.com | d5cb910 | 2010-05-21 20:47:13 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html> |
| 2 | <title>Canvas test: 2d.fillStyle.parse.transparent-2</title> |
| 3 | <script src="../tests.js"></script> |
| 4 | <link rel="stylesheet" href="../tests.css"> |
| 5 | <link rel="prev" href="2d.fillStyle.parse.transparent-1.html" title="2d.fillStyle.parse.transparent-1"> |
| 6 | <link rel="next" href="2d.fillStyle.parse.hsl-1.html" title="2d.fillStyle.parse.hsl-1"> |
| 7 | <body class="show_output"> |
| 8 | <p> |
| 9 | <a href="2d.fillStyle.parse.transparent-1.html" accesskey="p" title="[p] 2d.fillStyle.parse.transparent-1"><</a> |
| 10 | <a href="index.html">[index]</a> |
| 11 | <a href="2d.fillStyle.parse.hsl-1.html" accesskey="n" title="[n] 2d.fillStyle.parse.hsl-1">></a> |
| 12 | <h1><a href="index.2d.html">2d</a>.<a href="index.2d.fillStyle.html">fillStyle</a>.<a href="index.2d.fillStyle.parse.html">parse</a>.transparent-2</h1> |
| 13 | <p class="desc"></p> |
| 14 | <div class="refs">References: |
| 15 | <ul> |
| 16 | <li><a href="spec.html#testrefs.2d.colours.parse">2d.colours.parse</a> |
| 17 | |
| 18 | </ul> |
| 19 | </div> |
| 20 | <p class="notes"> |
| 21 | <p class="output">Actual output:</p> |
| 22 | <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas> |
| 23 | <p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.transparent-2.png" class="output expected" id="expected" alt=""> |
| 24 | <ul id="d"></ul> |
| 25 | <script> |
| 26 | _addTest(function(canvas, ctx) { |
| 27 | |
| 28 | |
| 29 | ctx.fillStyle = '#f00'; |
| 30 | ctx.fillStyle = 'TrAnSpArEnT'; |
| 31 | ctx.fillRect(0, 0, 100, 50); |
| 32 | _assertPixel(canvas, 50,25, 0,0,0,0, "50,25", "0,0,0,0"); |
| 33 | |
| 34 | |
| 35 | }); |
| 36 | </script> |
| 37 | |