mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1252750 - Part 2: Convert dom/media to use SpecialPowers.spinEventLoop. r=mrbkap
--HG-- extra : rebase_source : 37821b331d76f555f60173644e15244f618c06bf
This commit is contained in:
parent
a98f782612
commit
f77ed0040b
@ -14,11 +14,9 @@
|
||||
var testAudio = createMediaElement('audio', 'testAudio');
|
||||
return new Promise((resolve, reject) => {
|
||||
navigator.mozGetUserMedia({ audio: true }, () => {
|
||||
var syncXHR = new XMLHttpRequest();
|
||||
syncXHR.open('GET', location, false);
|
||||
syncXHR.send();
|
||||
ok(true, "Didn't crash");
|
||||
resolve();
|
||||
SpecialPowers.spinEventLoop(window);
|
||||
ok(true, "Didn't crash");
|
||||
resolve();
|
||||
}, () => {});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user