Bug 1252750 - Part 2: Convert dom/media to use SpecialPowers.spinEventLoop. r=mrbkap

--HG--
extra : rebase_source : 37821b331d76f555f60173644e15244f618c06bf
This commit is contained in:
Doug Turner 2016-03-05 00:05:00 -05:00
parent a98f782612
commit f77ed0040b

View File

@ -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();
}, () => {});
});
});