forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1859312 [wpt PR 42558] - LoAF: Deflake some tests that time out, …
…a=testonly Automatic update from web-platform-tests LoAF: Deflake some tests that time out - Add long timeout to loaf-blocking-duration - Split iframe & popup tests, to avoid long timeout Bug: 1479161 Bug: 1462683 Change-Id: Ic3b4b3a08a8900332fc8233e7383a8806805ec69 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4942197 Commit-Queue: Noam Rosenthal <[email protected]> Reviewed-by: Yoav Weiss <[email protected]> Cr-Commit-Position: refs/heads/main@{#1210211} -- wpt-commits: c71b71b002b58c722e82767e12107862793eaed0 wpt-pr: 42558
- Loading branch information
1 parent
e5e21f4
commit b1e389c
Showing
3 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
testing/web-platform/tests/long-animation-frame/tentative/loaf-blocking-duration.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
testing/web-platform/tests/long-animation-frame/tentative/loaf-popup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE HTML> | ||
<meta charset=utf-8> | ||
<title>Long Animation Frame Timing: popups</title> | ||
<meta name="timeout" content="long"> | ||
<body> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/common/get-host-info.sub.js"></script> | ||
<script src="/common/utils.js"></script> | ||
<script src="/common/dispatcher/dispatcher.js"></script> | ||
<script src="resources/utils.js"></script> | ||
<div id="log"></div> | ||
<script> | ||
const host_info = get_host_info(); | ||
const { ORIGIN } = host_info; | ||
|
||
promise_test(async t => { | ||
const [executor] = await prepare_exec_popup(t, ORIGIN); | ||
await expect_no_long_frame(() => executor.execute_script((duration) => { | ||
const deadline = performance.now() + duration; | ||
while (performance.now() < deadline) {} | ||
}, [very_long_frame_duration]), t); | ||
}, 'A long busy wait in a same-origin popup is a not long animation frame'); | ||
</script> | ||
</body> |