blob: e88c0d9ff9380c50a4f9e0568992273c50b7f25c [file] [log] [blame]
chang.shu@nokia.comd5cb9102010-05-21 20:47:13 +00001<!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">&lt;</a>
10 <a href="index.html">[index]</a>
11 <a href="size.attributes.parse.junk.html" accesskey="n" title="[n] size.attributes.parse.junk">&gt;</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