Skip to content

Commit

Permalink
Unskip loaf-source-location-redirect and deflake
Browse files Browse the repository at this point in the history
Sometimes the LoAFs have a slightly lower duration, be more
forgiving (utils.js already does this).

Bug: 1507152
Change-Id: I8ea49a581d65fcd5cb19f4c8bbd5911d8f7eaac8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5233107
Reviewed-by: Michal Mocny <mmocny@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1251598}
  • Loading branch information
noamr authored and chromium-wpt-export-bot committed Jan 24, 2024
1 parent ac9206d commit ac4e3bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1>Long Animation Frame: source location with cross-origin redirects</h1>
script.crossOrigin = "anonymous";
document.body.appendChild(script);
t.add_cleanup(() => script.remove());
}, script => script.duration >= VERY_LONG_FRAME_DURATION, t);
}, script => script.duration >= VERY_LONG_FRAME_DURATION - 5, t);

const result =
script.sourceLocation.startsWith(postRedirectURL) ? "post-redirect" :
Expand Down

2 comments on commit ac4e3bc

@Ayyan0787
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ayyan0787
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hf

Please sign in to comment.