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

--HG--
extra : rebase_source : 67d3067907c44ce38907dbfd8ffc429adc106836
This commit is contained in:
Doug Turner 2016-03-05 00:06:00 -05:00
parent 640b683958
commit bf44c44934
2 changed files with 2 additions and 5 deletions

View File

@ -7,7 +7,6 @@ support-files =
hello.ogg^headers^
silence.ogg
silence.ogg^headers^
[test_abort.html]
skip-if = toolkit == 'android' # bug 1037287
[test_audio_capture_error.html]
@ -15,7 +14,7 @@ skip-if = toolkit == 'android' # bug 1037287
tags=capturestream
skip-if = (android_version == '18' && debug) # bug 967606
[test_nested_eventloop.html]
skip-if = buildapp == 'mulet' || toolkit == 'android' || e10s # b2g(showmodaldialog)
skip-if = buildapp == 'mulet' || toolkit == 'android'
[test_preference_enable.html]
[test_recognition_service_error.html]
[test_success_without_recognition_service.html]

View File

@ -27,12 +27,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=650295
* When this is done from inside DOM event handlers, it is possible to
* cause reentrancy in our C++ code, which we should be able to withstand.
*/
function abortAndSpinEventLoop(evt, sr) {
sr.abort();
window.showModalDialog("javascript:window.close()");
SpecialPowers.spinEventLoop(window);
}
function doneFunc() {
// Trigger gc now and wait some time to make sure this test gets the blame
// for any assertions caused by showModalDialog