blob: 41e97210f62be7edb01429d5949194d0a8e1b5f8 [file] [log] [blame]
<!DOCTYPE html>
<title>Canvas test: size.attributes.parse.hex</title>
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="size.attributes.parse.octal.html" title="size.attributes.parse.octal">
<link rel="next" href="size.attributes.parse.exp.html" title="size.attributes.parse.exp">
<body class="show_output">
<p>
<a href="size.attributes.parse.octal.html" accesskey="p" title="[p] size.attributes.parse.octal">&lt;</a>
<a href="index.html">[index]</a>
<a href="size.attributes.parse.exp.html" accesskey="n" title="[n] size.attributes.parse.exp">&gt;</a>
<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>.hex</h1>
<p class="desc">Parsing of non-negative integers</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.size.nonnegativeinteger">size.nonnegativeinteger</a>
</ul>
</div>
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="0x100" height="0x100"><p class="fallback">FAIL (fallback content)</p></canvas>
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {
_assertSame(canvas.width, 0, "canvas.width", "0");
_assertSame(canvas.height, 0, "canvas.height", "0");
_assertEqual(window.getComputedStyle(canvas, null).getPropertyValue("width"), "0px", "window.getComputedStyle(canvas, null).getPropertyValue(\"width\")", "\"0px\"");
});
</script>