From 959f6d2881edaf7389b439ca69bcf881622d06a2 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Wed, 28 Feb 2018 23:36:49 -0600 Subject: 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 --- dom/media/test/test_background_video_suspend.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 dom/media/test/test_background_video_suspend.html diff --git a/dom/media/test/test_background_video_suspend.html b/dom/media/test/test_background_video_suspend.html old mode 100644 new mode 100755 index e872eacf8..a5ac5cc2c --- 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) => { -- cgit v1.2.3