4 This test passes if there are two green boxes and no crash.
5 <div style=
"width: 100px; height: 100px; background: url(resources/100px-green-rect.svg);"></div>
7 <canvas id=
"canvas" width=
"100" height=
"100"></canvas>
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
14 var svg
= new Image();
15 svg
.src
= 'resources/100px-green-rect.svg';
17 svg
.onload = function() {
18 var canvas
= document
.getElementById('canvas');
19 canvas
.getContext('2d').drawImage(svg
, 0, 0);
21 if (window
.testRunner
)
22 testRunner
.notifyDone();