2 <title>Canvas test: filling a pattern with an empty image should not crash and should return a null pattern.
</title>
3 <div id=
"console"></div>
4 <canvas id=
"canvas" class=
"output" width=
"100" height=
"100"><p class=
"fallback">FAIL (fallback content)
</p></canvas>
7 testRunner
.dumpAsText();
9 var canvas
= document
.getElementById("canvas").getContext("2d");
10 var pattern
= canvas
.createPattern(new Image
, "repeat")
12 document
.getElementById("console").innerHTML
= "TEST FAILED";
14 document
.getElementById("console").innerHTML
= "TEST PASSED";