chang.shu@nokia.com | d5cb910 | 2010-05-21 20:47:13 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html> |
| 2 | <title>Canvas test: size.attributes.parse.em</title> |
| 3 | <script src="../tests.js"></script> |
| 4 | <link rel="stylesheet" href="../tests.css"> |
| 5 | <link rel="prev" href="size.attributes.parse.percent.html" title="size.attributes.parse.percent"> |
| 6 | <link rel="next" href="size.attributes.parse.junk.html" title="size.attributes.parse.junk"> |
| 7 | <body class="show_output"> |
| 8 | <p> |
| 9 | <a href="size.attributes.parse.percent.html" accesskey="p" title="[p] size.attributes.parse.percent"><</a> |
| 10 | <a href="index.html">[index]</a> |
| 11 | <a href="size.attributes.parse.junk.html" accesskey="n" title="[n] size.attributes.parse.junk">></a> |
| 12 | <h1><a href="index.size.html">size</a>.<a href="index.size.attributes.html">attributes</a>.<a href="index.size.attributes.parse.html">parse</a>.em</h1> |
| 13 | <p class="desc">Parsing of non-negative integers</p> |
| 14 | <div class="refs">References: |
| 15 | <ul> |
| 16 | <li><a href="spec.html#testrefs.size.nonnegativeinteger">size.nonnegativeinteger</a> |
| 17 | |
| 18 | </ul> |
| 19 | </div> |
| 20 | |
| 21 | <p class="output">Actual output:</p> |
| 22 | <canvas id="c" class="output" width="100em" height="100em"><p class="fallback">FAIL (fallback content)</p></canvas> |
| 23 | <p class="output expectedtext">Expected output:<p><img src="size.attributes.parse.em.png" class="output expected" id="expected" alt=""> |
| 24 | <ul id="d"></ul> |
| 25 | <script> |
| 26 | _addTest(function(canvas, ctx) { |
| 27 | |
| 28 | _assertSame(canvas.width, 100, "canvas.width", "100"); |
| 29 | _assertSame(canvas.height, 100, "canvas.height", "100"); |
| 30 | _assertEqual(window.getComputedStyle(canvas, null).getPropertyValue("width"), "100px", "window.getComputedStyle(canvas, null).getPropertyValue(\"width\")", "\"100px\""); |
| 31 | |
| 32 | |
| 33 | }); |
| 34 | </script> |
| 35 | |