mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
Tests: Resync imported WPT tests
This commit is contained in:
committed by
Shannon Booth
parent
dda3cb99b7
commit
504a8e6d1d
Notes:
github-actions[bot]
2026-04-04 21:38:15 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/504a8e6d1d3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8776 Reviewed-by: https://github.com/shannonbooth ✅
@@ -181,7 +181,7 @@ function discrete_animation_test(syntax, fromValue, toValue, description) {
|
||||
}
|
||||
|
||||
function transition_test(options, description) {
|
||||
promise_test(async () => {
|
||||
promise_test(async t => {
|
||||
const customProperty = generate_name();
|
||||
|
||||
options.transitionProperty ??= customProperty;
|
||||
@@ -197,11 +197,11 @@ function transition_test(options, description) {
|
||||
|
||||
const transitionEventPromise = new Promise(resolve => {
|
||||
let listener = event => {
|
||||
target.removeEventListener("transitionrun", listener);
|
||||
assert_equals(event.propertyName, customProperty, "TransitionEvent has the expected property name");
|
||||
resolve();
|
||||
};
|
||||
target.addEventListener("transitionrun", listener);
|
||||
target.addEventListener("transitionrun", listener, { once: true });
|
||||
t.add_cleanup(() => target.removeEventListener("transitionrun", listener));
|
||||
});
|
||||
|
||||
target.style.transition = `${options.transitionProperty} 1s -500ms linear`;
|
||||
|
||||
Reference in New Issue
Block a user