Bug 1304298. Part 3 - reduce suspend-timeout to 100ms so playback is less likely to reach the end before finishing all tests. r=kamidphish

MozReview-Commit-ID: 2hxC8UGZfPe

--HG--
extra : rebase_source : a763d21c2bde5bfe84ce9195b4229339289d97eb
This commit is contained in:
JW Wang 2016-09-21 15:20:14 +08:00
parent 37be2ffa27
commit fce9ae316e

View File

@ -23,7 +23,7 @@ startTest({
[ "media.suspend-bkgnd-video.enabled", true ],
// User a short delay to ensure video decode suspend happens before end
// of video.
[ "media.suspend-bkgnd-video.delay-ms", 1000 ]
[ "media.suspend-bkgnd-video.delay-ms", 100 ]
],
tests: gDecodeSuspendTests,
runTest: (test, token) => {
@ -34,7 +34,7 @@ startTest({
waitUntilPlaying(v)
.then(() => { start = performance.now(); })
.then(() => testVideoSuspendsWhenHidden(v))
.then(() => testDelay(v, start, 1000, 10000))
.then(() => testDelay(v, start, 100, 1000))
.then(() => waitTil(v, v.duration / 2))
.then(() => testVideoResumesWhenShown(v))
.then(() => waitUntilEnded(v))