2016-01-19 09:35:01 +03:00
|
|
|
function testBug1239300() {
|
|
|
|
return new Promise(function(resolve, reject) {
|
|
|
|
createImageBitmap(new Blob()).then(
|
|
|
|
function() {
|
2016-08-16 06:52:58 +03:00
|
|
|
ok(false, "The promise should be rejected with InvalidStateError.");
|
2016-01-19 09:35:01 +03:00
|
|
|
reject();
|
|
|
|
},
|
|
|
|
function(result) {
|
2016-08-16 06:52:58 +03:00
|
|
|
if (result.name == "InvalidStateError") {
|
|
|
|
ok(true, "The promise should be rejected with InvalidStateError.");
|
2016-01-19 09:35:01 +03:00
|
|
|
resolve();
|
|
|
|
} else {
|
2016-08-16 06:52:58 +03:00
|
|
|
ok(false, "The promise should be rejected with InvalidStateError.");
|
2016-01-19 09:35:01 +03:00
|
|
|
reject();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|