blob: f87962dd19d96bdca3d26e6220416d8db09bb114 [file] [log] [blame]
<!DOCTYPE html>
<title>Canvas test: 2d.pattern.image.incomplete.empty</title>
<meta name="author" content="Philip Taylor">
<script src="../common/canvas-tests.js"></script>
<link rel="stylesheet" href="../common/canvas-tests.css">
<body class="show_output">
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.pattern.html">pattern</a>.<a href="index.2d.pattern.image.html">image</a>.<a href="index.2d.pattern.image.incomplete.html">incomplete</a>.empty</h1>
<p class="desc"></p>
<div class="refs">Spec references:
<ul>
<li><a href="../annotated-spec/canvas.html#testrefs.2d.pattern.incomplete.image.nosrc">2d.pattern.incomplete.image.nosrc</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>
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {
var img = document.getElementById('green.png');
img.src = "";
_assertSame(ctx.createPattern(img, 'repeat'), null, "ctx.createPattern(img, 'repeat')", "null");
});
</script>
<img src="../resources/green.png" id="green.png" class="resource">