зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1364202 - increase timeout time for waiting playback status changed. r=sebastian
Because the emulator is super slow, it would need longer time to wait for the tab's playback status changed. MozReview-Commit-ID: CLUimz6pF26 --HG-- extra : rebase_source : 11324f446dee72e813e901579614659e16d0d4d9
This commit is contained in:
Родитель
2b012b29d5
Коммит
f541431711
|
@ -31,6 +31,7 @@ abstract class MediaPlaybackTest extends BaseTest {
|
|||
private JavascriptBridge mJs;
|
||||
|
||||
private static final int UI_CHANGED_WAIT_MS = 6000;
|
||||
private static final int MEDIA_PLAYBACK_CHANGED_WAIT_MS = 15000;
|
||||
|
||||
protected final void info(String msg) {
|
||||
mAsserter.dumpLog(msg);
|
||||
|
@ -118,7 +119,7 @@ abstract class MediaPlaybackTest extends BaseTest {
|
|||
public boolean isSatisfied() {
|
||||
return tab.isAudioPlaying() == isTabPlaying;
|
||||
}
|
||||
}, MAX_WAIT_MS);
|
||||
}, MEDIA_PLAYBACK_CHANGED_WAIT_MS);
|
||||
}
|
||||
|
||||
private final void waitUntilTabMediaPlaybackChanged(final Tab tab,
|
||||
|
@ -131,7 +132,7 @@ abstract class MediaPlaybackTest extends BaseTest {
|
|||
public boolean isSatisfied() {
|
||||
return tab.isMediaPlaying() == isTabPlaying;
|
||||
}
|
||||
}, MAX_WAIT_MS);
|
||||
}, MEDIA_PLAYBACK_CHANGED_WAIT_MS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче