summaryrefslogtreecommitdiffstats
path: root/dom/media/test
diff options
context:
space:
mode:
authorTom Ritter <tom@mozilla.com>2018-02-28 23:36:49 -0600
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 12:37:53 +0100
commit959f6d2881edaf7389b439ca69bcf881622d06a2 (patch)
treec09b1bc727617bb5ec2d129743587dc505d34024 /dom/media/test
parent5e04b38b1dc6a5918091810bd3b93a57df36499e (diff)
downloadUXP-959f6d2881edaf7389b439ca69bcf881622d06a2.tar
UXP-959f6d2881edaf7389b439ca69bcf881622d06a2.tar.gz
UXP-959f6d2881edaf7389b439ca69bcf881622d06a2.tar.lz
UXP-959f6d2881edaf7389b439ca69bcf881622d06a2.tar.xz
UXP-959f6d2881edaf7389b439ca69bcf881622d06a2.zip
Bug 1442127 - Allow timestamps to be equal in video delay. r=baku, a=test-only
MozReview-Commit-ID: LsNy7E3bFv6 --HG-- extra : transplant_source : %B4t%00u%DB%EE%86%BD2%81%AA%CD%88X%BF%BC%AE%E8%3D%B7 extra : histedit_source : a16c98faab76929e32d9153b288f4ec5c92a0ba6
Diffstat (limited to 'dom/media/test')
-rwxr-xr-x[-rw-r--r--]dom/media/test/test_background_video_suspend.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/media/test/test_background_video_suspend.html b/dom/media/test/test_background_video_suspend.html
index e872eacf8..a5ac5cc2c 100644..100755
--- a/dom/media/test/test_background_video_suspend.html
+++ b/dom/media/test/test_background_video_suspend.html
@@ -15,7 +15,7 @@ var MIN_DELAY = 100;
function testDelay(v, start, min) {
let end = performance.now();
let delay = end - start;
- ok(delay > min, `${v.token} suspended with a delay of ${delay} ms`);
+ ok(delay >= min, `${v.token} suspended with a delay of ${delay} ms`);
}
startTest({
@@ -25,7 +25,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", MIN_DELAY ]
+ [ "media.suspend-bkgnd-video.delay-ms", MIN_DELAY ],
],
tests: gDecodeSuspendTests,
runTest: (test, token) => {