зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357639 - part6 : list all test tasks in the ctor. r=sebastian
It's easy to know what test tasks we'll run in this test. MozReview-Commit-ID: DdtFp4pOXlC --HG-- extra : rebase_source : 3618c4fe0037b16fb6e8727c1523d9121732a61a
This commit is contained in:
Родитель
8ac7ff6fae
Коммит
3e170812fe
|
@ -13,6 +13,17 @@ public class testAudioFocus extends MediaPlaybackTest {
|
|||
info("- wait for gecko ready -");
|
||||
blockForGeckoReady();
|
||||
|
||||
info("- run test : testBasicAbility -");
|
||||
testBasicAbility();
|
||||
|
||||
info("- run test : testAudioFocusChanged -");
|
||||
testAudioFocusChanged();
|
||||
|
||||
info("- run test : testSwitchTab -");
|
||||
testSwitchTab();
|
||||
}
|
||||
|
||||
private void testBasicAbility() {
|
||||
info("- check audio focus in the beginning -");
|
||||
mAsserter.is(getAudioFocusAgent().getAudioFocusState(),
|
||||
State.LOST_FOCUS,
|
||||
|
@ -65,9 +76,6 @@ public class testAudioFocus extends MediaPlaybackTest {
|
|||
mAsserter.is(getAudioFocusAgent().getAudioFocusState(),
|
||||
State.LOST_FOCUS,
|
||||
"Should lose audio focus.");
|
||||
|
||||
info("- run next test : testAudioFocusChanged -");
|
||||
testAudioFocusChanged();
|
||||
}
|
||||
|
||||
private void testAudioFocusChanged() {
|
||||
|
|
|
@ -16,6 +16,23 @@ public class testMediaControl extends MediaPlaybackTest {
|
|||
info("- wait for gecko ready -");
|
||||
blockForGeckoReady();
|
||||
|
||||
info("- run test : testBasicBehaviors -");
|
||||
testBasicBehaviors();
|
||||
|
||||
info("- run test : testNavigateOutThePage -");
|
||||
testNavigateOutThePage();
|
||||
|
||||
info("- run test : testAudioFocusChanged -");
|
||||
testAudioFocusChanged();
|
||||
|
||||
info("- run test : testSwitchTab -");
|
||||
testSwitchTab();
|
||||
|
||||
info("- run test : testCloseTab -");
|
||||
testCloseTab();
|
||||
}
|
||||
|
||||
private void testBasicBehaviors() {
|
||||
info("- load URL -");
|
||||
final String MEDIA_URL = getAbsoluteUrl(mStringHelper.ROBOCOP_MEDIA_PLAYBACK_LOOP_URL);
|
||||
loadUrlAndWait(MEDIA_URL);
|
||||
|
@ -37,9 +54,6 @@ public class testMediaControl extends MediaPlaybackTest {
|
|||
|
||||
info("- close tab -");
|
||||
closeAllTabs();
|
||||
|
||||
info("- run next test : testNavigateOutThePage -");
|
||||
testNavigateOutThePage();
|
||||
}
|
||||
|
||||
private void testNavigateOutThePage() {
|
||||
|
@ -84,9 +98,6 @@ public class testMediaControl extends MediaPlaybackTest {
|
|||
|
||||
info("- close tab -");
|
||||
closeAllTabs();
|
||||
|
||||
info("- run next test : testSwitchTab -");
|
||||
testSwitchTab();
|
||||
}
|
||||
|
||||
private void testSwitchTab() {
|
||||
|
@ -106,9 +117,6 @@ public class testMediaControl extends MediaPlaybackTest {
|
|||
|
||||
info("- close tab -");
|
||||
closeAllTabs();
|
||||
|
||||
info("- run next test : testCloseTab -");
|
||||
testCloseTab();
|
||||
}
|
||||
|
||||
private void testCloseTab() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче