1 Tests that incomplete (not fully loaded/decoded) images cannot be used to create a CanvasPattern.
<br/><br/>
4 testRunner
.dumpAsText();
6 var canvas
= document
.createElement("canvas");
7 var ctx
= canvas
.getContext('2d');
8 ctx
.fillRect(0,0,150,150);
10 img
.src
= 'resources/image-slow.pl';
13 ptrn
= ctx
.createPattern(img
, 'repeat');
15 document
.write("PASS - image is not complete");
17 document
.write("FAIL - image is complete");
18 document
.write("<br/>");
20 document
.write("PASS - createPattern() failed for incomplete image");
22 document
.write("FAIL - createPattern() succeeded for incomplete image");
24 document
.write("FAIL - caught exception: " + e
);