1 function testBug1239300() {
2 return new Promise(function (resolve, reject) {
3 createImageBitmap(new Blob()).then(
5 ok(false, "The promise should be rejected with InvalidStateError.");
9 if (result.name == "InvalidStateError") {
10 ok(true, "The promise should be rejected with InvalidStateError.");
13 ok(false, "The promise should be rejected with InvalidStateError.");