blob: 889668eed53bfef9d632e886d30efe650de62cc6 [file] [log] [blame]
<!DOCTYPE html>
<title>Canvas test: 2d.strokeRect.zero.5</title>
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="2d.strokeRect.zero.4.html" title="2d.strokeRect.zero.4">
<link rel="next" href="2d.strokeRect.negative.html" title="2d.strokeRect.negative">
<body class="show_output">
<p>
<a href="2d.strokeRect.zero.4.html" accesskey="p" title="[p] 2d.strokeRect.zero.4">&lt;</a>
<a href="index.html">[index]</a>
<a href="2d.strokeRect.negative.html" accesskey="n" title="[n] 2d.strokeRect.negative">&gt;</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.strokeRect.html">strokeRect</a>.<a href="index.2d.strokeRect.zero.html">zero</a>.5</h1>
<p class="desc">strokeRect of Nx0 pixels draws a closed line with joins</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.2d.strokeRect">2d.strokeRect</a>
</ul>
</div>
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="green-100x50.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {
ctx.strokeStyle = '#0f0';
ctx.lineWidth = 250;
ctx.lineJoin = 'round';
ctx.strokeRect(100, 25, 100, 0);
_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
});
</script>