org.chromium.chrome.browser.video.VideoTest fails on low-end devices |
||||
Issue descriptionSince https://codereview.chromium.org/2344353003, org.chromium.chrome.browser.video.VideoTest fails (https://build.chromium.org/p/chromium.android/builders/Lollipop%20Low-end%20Tester/builds/4047): [FAIL] org.chromium.chrome.browser.video.VideoTest#testLoadMediaUrl: java.util.concurrent.TimeoutException: waitForCallback timed out! at org.chromium.content.browser.test.util.CallbackHelper.waitForCallback(CallbackHelper.java:184) at org.chromium.chrome.test.util.browser.TabTitleObserver.waitForTitleUpdate(TabTitleObserver.java:50) at org.chromium.chrome.browser.video.VideoTest.testLoadMediaUrl(VideoTest.java:42) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at org.chromium.chrome.test.ChromeActivityTestCaseBase.runTest(ChromeActivityTestCaseBase.java:726) at org.chromium.base.test.BaseTestResult.runParameterized(BaseTestResult.java:161) at org.chromium.base.test.BaseTestResult.run(BaseTestResult.java:124) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:555) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1853) I think the canplaythrough event doesn't fire on low-end devices, because preloading the movie was disabled in https://codereview.chromium.org/2344353003. I'm going to disable the test on low-end for now, but it would be nice to get the test coverage back. I guess we could just try listening to canplay instead? Given that the video is served from a local file server, I wouldn't expect it to buffer for long enough to hit the timeout.
,
Oct 18 2016
Test should just call load() when preload=none.
,
Oct 18 2016
avayod@ seems to be working on these.
,
Oct 19 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/56ed0f1a962c25e882be130015ba53e7ab14993b commit 56ed0f1a962c25e882be130015ba53e7ab14993b Author: avayvod <avayvod@chromium.org> Date: Wed Oct 19 15:13:03 2016 [Android, Media, Test] Fix VideoTest.java on low-end devices Call load() on the media element to overcome the forced preload=none on low-end devices. BUG= 654411 TEST=run the test locally on a low-end device Review-Url: https://chromiumcodereview.appspot.com/2425293003 Cr-Commit-Position: refs/heads/master@{#426195} [modify] https://crrev.com/56ed0f1a962c25e882be130015ba53e7ab14993b/chrome/android/javatests/src/org/chromium/chrome/browser/video/VideoTest.java [modify] https://crrev.com/56ed0f1a962c25e882be130015ba53e7ab14993b/chrome/test/data/android/media/video-play.html
,
Dec 1 2016
I think this was fixed by #c4
,
Jan 24 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Oct 10 2016