mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
19
dom/canvas/test/imagebitmap_bug1239300.js
Normal file
19
dom/canvas/test/imagebitmap_bug1239300.js
Normal file
|
|
@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue