blob: 965304d2599e44c70bbe4253df456a3f4ea0e5fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
function testBug1239300() {
return new Promise(function(resolve, reject) {
createImageBitmap(new Blob()).then(
function() {
ok(false, "The promise should be rejected with InvalidStateError.");
reject();
},
function(result) {
if (result.name == "InvalidStateError") {
ok(true, "The promise should be rejected with InvalidStateError.");
resolve();
} else {
ok(false, "The promise should be rejected with InvalidStateError.");
reject();
}
}
);
});
}
|