Bug 1312618 - Intermittent dom/base/test/test_noAudioNotificationOnVolume0Element.html.
MozReview-Commit-ID: 6s3a1alEIUw
--- a/dom/base/test/test_noAudioNotificationOnMutedElement.html
+++ b/dom/base/test/test_noAudioNotificationOnMutedElement.html
@@ -34,18 +34,17 @@ var audio = new Audio();
audio.loop = true;
var tests = [
function() {
observerService.addObserver(observer, "audio-playback", false);
ok(true, "Observer set");
audio.src = "audio.ogg";
- // Wait for the audio metadata to become available so that we have an audio track.
- audio.onloadedmetadata = runTest;
+ runTest();
},
// Verify that muting and unmuting dispatches the events as expected.
function() {
expectedNotification = 'active';
audio.play();
},
--- a/dom/base/test/test_noAudioNotificationOnMutedOrVolume0Element.html
+++ b/dom/base/test/test_noAudioNotificationOnMutedOrVolume0Element.html
@@ -34,18 +34,17 @@ var audio = new Audio();
audio.loop = true;
var tests = [
function() {
observerService.addObserver(observer, "audio-playback", false);
ok(true, "Observer set");
audio.src = "audio.ogg";
- // Wait for the audio metadata to become available so that we have an audio track.
- audio.onloadedmetadata = runTest;
+ runTest();
},
// Verify that unmuting when the volume is 0 doesn't dispatch the events.
function() {
expectedNotification = 'active';
audio.play();
},