Skip to content

testdriver harness: Allow duration 0 for actions/tick#57607

Merged
jdm merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42398
Feb 26, 2026
Merged

testdriver harness: Allow duration 0 for actions/tick#57607
jdm merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_42398

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Feb 6, 2026

Previously, even if you explicitly set duration 0, it still ends up with None.
But you can set duration 0 in wdspec python tests.
This complies with spec: duration can be greater than or equal to 0.

Testing: There is no existing testdriver tests that use duration 0.
Fixes: #57606
Found in: servo/servo#42387 (comment)

Reviewed in servo/servo#42398

Copy link
Copy Markdown
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 Servo project.

@yezhizhen
Copy link
Copy Markdown
Contributor

yezhizhen commented Feb 6, 2026

@yezhizhen

This comment was marked as off-topic.

@yezhizhen

This comment was marked as resolved.

@servo-wpt-sync servo-wpt-sync added stale-servo-export PRs that were supposed to merge but were not able to do so. and removed do not merge yet labels Feb 8, 2026
@servo-wpt-sync
Copy link
Copy Markdown
Collaborator Author

⛔ The downstream PR has merged (servo/servo#42398), but these changes could not be merged properly. Please address any CI issues and try to merge manually.

@yezhizhen
Copy link
Copy Markdown
Contributor

yezhizhen commented Feb 8, 2026

I see no issue in CI tho.

Edit: Oh. Just realise this one requires wpt-core-team.

@yezhizhen
Copy link
Copy Markdown
Contributor

When I click web-platform-tests/wpt-core-team, it says 404 tho..
Is the team private?

@mrobinson
Copy link
Copy Markdown
Contributor

cc @web-platform-tests/wpt-core-team

@yezhizhen
Copy link
Copy Markdown
Contributor

We can't seem to mention the team too..

@whimboo
Copy link
Copy Markdown
Contributor

whimboo commented Feb 9, 2026

The change looks ok to me but I wonder if we should add a test for it. The behavior can be verified that only a single event is emitted when performing an action chain. But I'll leave this to the platform core team.

@yezhizhen
Copy link
Copy Markdown
Contributor

yezhizhen commented Feb 9, 2026

@whimboo Thanks for taking a look. Do you know any member of the team? It seems very mysterious right now and I don't know who we can reach out to..

@whimboo
Copy link
Copy Markdown
Contributor

whimboo commented Feb 9, 2026

You already CC'ed @jgraham so lets wait for his reply.

@jdm jdm merged commit 5f26fc4 into web-platform-tests:master Feb 26, 2026
19 checks passed
@yezhizhen yezhizhen deleted the servo_export_42398 branch February 26, 2026 02:46
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Mar 1, 2026
As titled. The change is prepared a while ago to eliminate dead code, 
but the test case added requires change from `testdriver-actions.js`: 
web-platform-tests/wpt#57607 just landed by
latest wpt-sync: #42925.

Part of #41923

Testing: Added a WPT test.
Fixes: #42921

---------

Signed-off-by: Euclid Ye <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Mar 1, 2026
As titled. The change is prepared a while ago to eliminate dead code, 
but the test case added requires change from `testdriver-actions.js`: 
web-platform-tests/wpt#57607 just landed by
latest wpt-sync: #42925.

Part of #41923

Testing: Added a WPT test.
Fixes: #42921

---------

Signed-off-by: Euclid Ye <[email protected]>
simonwuelker pushed a commit to simonwuelker/servo that referenced this pull request Mar 3, 2026
…o#42926)

As titled. The change is prepared a while ago to eliminate dead code, 
but the test case added requires change from `testdriver-actions.js`: 
web-platform-tests/wpt#57607 just landed by
latest wpt-sync: servo#42925.

Part of servo#41923

Testing: Added a WPT test.
Fixes: servo#42921

---------

Signed-off-by: Euclid Ye <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra servo-export stale-servo-export PRs that were supposed to merge but were not able to do so. testdriver.js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testdriver harness: Cannot set duration as 0 for actions

7 participants