Bug 1509434 - Part 2 - Wait for AudioFocusAgent to be initialized before starting testMediaControl;r=JanH

Inside the tests from testMediaControl audio focus is not immediately checked
as for the tests from testAudioFocus but nonetheless we should make sure
AudioFocusAgent is initialized before proceeding with the media tests.

Depends on D14417

Differential Revision: https://phabricator.services.mozilla.com/D14418

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Petru Lingurar 2018-12-16 19:48:16 +00:00
parent 7ad49069ce
commit cd5624af54

View File

@ -15,8 +15,8 @@ public class testMediaControl extends MediaPlaybackTest {
info("- ensure the test is running on correct Android version -");
checkAndroidVersionForMediaControlTest();
info("- wait for gecko ready -");
blockForGeckoReady();
info("- wait for AudioFocusAgent ready -");
blockForAudioFocusAgentReady();
info("- run test : testBasicBehaviors -");
testBasicBehaviors();