2 <title>Canvas test: toBlob
</title>
3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
4 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css">
6 <canvas id=
"c" width=
"100" height=
"0"></canvas>
9 function testblob(blob
) {
10 is(blob
, null, "Null blob expected");
13 function test1(canvas
)
15 canvas
.toBlob(function(blob
) {
21 function test2(canvas
)
25 canvas
.toBlob(function(blob
) {
31 SimpleTest
.waitForExplicitFinish();
33 addLoadEvent(function () {
35 var canvas
= document
.getElementById('c');
36 var ctx
= canvas
.getContext('2d');