blob: bad78178216d0f3c32a77a61eb7381569f969c3b [file] [log] [blame]
<!DOCTYPE html>
<title>Canvas test: 2d.canvas.readonly</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.canvas.html">canvas</a>.readonly</h1>
<p class="desc">CanvasRenderingContext2D.canvas is readonly</p>
<div class="refs">Spec references:
<ul>
<li><a href="../annotated-spec/canvas.html#testrefs.2d.canvas.attribute">2d.canvas.attribute</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 c = document.createElement('canvas');
var d = ctx.canvas;
_assertDifferent(c, d, "c", "d");
ctx.canvas = c;
_assertSame(ctx.canvas, d, "ctx.canvas", "d");
});
</script>