Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view-transition: Move pagereveal tests to WPT #42669

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Oct 20, 2023

The pagereveal event will be specified and shipped separately from
view transitions so move tests into WPT. Since the spec is still WIP
these tests are marked tentative for now.

Tests that were specifically dealing with usage of the viewTransition
attribute and its behavior in relation to a view transition were left in
the wpt_internal directory for view-transitions since those seems
specific to that feature.

Review note: PS#1 moves the files, diff from it to see changes.

These tests need to run in the no-forced-frame-update virtual test suite
since they're testing event order before rendering begins. WPT tests run
in single-threaded-mode which does not prevent scheduling frames before
rendering begins. This suite was added for other similar tests.

Additionally, there is a race during prerender activation between a
SynchronousComposite being called and receiving the WasShown signal from
the RenderWidgetHost. If the test invokes SynchronousComposite before
WasShown the BeginMainFrame is aborted. If a test is waiting on e.g. a
requestAnimationFrame it will timeout. This CL fixes this by detecting
this situation and scheduling a new frame when the widget becomes shown.

Bug: 1466250
Change-Id: I218f5ed18bbbf0a1c176fbf562aa5ae939a3adcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4956092
Commit-Queue: David Bokan <[email protected]>
Reviewed-by: Khushal Sagar <[email protected]>
Reviewed-by: Xianzhu Wang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1214522}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4956092 branch 4 times, most recently from 9f842aa to a40a6f7 Compare October 24, 2023 06:15
@noamr noamr mentioned this pull request Oct 24, 2023
5 tasks
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4956092 branch 2 times, most recently from cb9f629 to fb3a239 Compare October 24, 2023 21:25
The `pagereveal` event will be specified and shipped separately from
view transitions so move tests into WPT. Since the spec is still WIP
these tests are marked tentative for now.

Tests that were specifically dealing with usage of the `viewTransition`
attribute and its behavior in relation to a view transition were left in
the wpt_internal directory for view-transitions since those seems
specific to that feature.

Review note: PS#1 moves the files, diff from it to see changes.

These tests need to run in the no-forced-frame-update virtual test suite
since they're testing event order before rendering begins. WPT tests run
in single-threaded-mode which does not prevent scheduling frames before
rendering begins. This suite was added for other similar tests.

Additionally, there is a race during prerender activation between a
SynchronousComposite being called and receiving the WasShown signal from
the RenderWidgetHost. If the test invokes SynchronousComposite before
WasShown the BeginMainFrame is aborted. If a test is waiting on e.g. a
requestAnimationFrame it will timeout. This CL fixes this by detecting
this situation and scheduling a new frame when the widget becomes shown.

Bug: 1466250
Change-Id: I218f5ed18bbbf0a1c176fbf562aa5ae939a3adcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4956092
Commit-Queue: David Bokan <[email protected]>
Reviewed-by: Khushal Sagar <[email protected]>
Reviewed-by: Xianzhu Wang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1214522}
@WeizhongX
Copy link
Contributor

Slow tests

Test Result Longest duration (ms) Timeout (ms)
/html/browsers/browsing-the-web/history-traversal/pagereveal/tentative/order-in-bfcache-restore.html OK 9660 10000

These may be pre-existing or newly slow tests. Slow tests indicate that a test ran very close to the test timeout limit and so may become TIMEOUT-flaky in the future. Consider speeding up the test or breaking it into multiple tests. For help, please tag @web-platform-tests/wpt-core-team in a comment.

@WeizhongX
Copy link
Contributor

Created crbug.com/1495795, @KyleJu @jcscottiii can you help admin merge? Thanks!

@KyleJu KyleJu merged commit 21dc715 into master Oct 25, 2023
@KyleJu KyleJu deleted the chromium-export-cl-4956092 branch October 25, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants