mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
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
This commit is contained in:
parent
af7e635176
commit
8b096e70d2
1 changed files with 2 additions and 2 deletions
4
dom/media/test/test_background_video_suspend.html
Normal file → Executable file
4
dom/media/test/test_background_video_suspend.html
Normal file → Executable file
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue