mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Add NavigateEvent.sourceElement
Corresponds to: - https://github.com/whatwg/html/pull/10898 - https://github.com/whatwg/html/pull/10971 I've also updated the imported WPT test as it's been recently changed to account for 10898 being merged.
This commit is contained in:
parent
62f4cebbee
commit
26b7946123
Notes:
github-actions[bot]
2025-02-04 11:25:44 +00:00
Author: https://github.com/AtkinsSJ
Commit: 26b7946123
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3409
8 changed files with 44 additions and 25 deletions
|
@ -78,8 +78,7 @@ async_test(t => {
|
|||
assert_equals(event.downloadRequest, downloadRequest);
|
||||
assert_equals(event.info, info);
|
||||
assert_equals(event.hasUAVisualTransition, hasUAVisualTransition);
|
||||
// NavigateEvent sourceElement is still in development, so test whether it is available.
|
||||
if ("sourceElement" in e) assert_equals(event.sourceElement, sourceElement);
|
||||
assert_equals(event.sourceElement, sourceElement);
|
||||
});
|
||||
history.pushState(2, null, "#2");
|
||||
}, "all properties are reflected back");
|
||||
|
@ -99,8 +98,7 @@ async_test(t => {
|
|||
assert_equals(event.formData, null);
|
||||
assert_equals(event.downloadRequest, null);
|
||||
assert_equals(event.info, undefined);
|
||||
// NavigateEvent sourceElement is still in development, so test whether it is available.
|
||||
if ("sourceElement" in e) assert_equals(event.sourceElement, null);
|
||||
assert_equals(event.sourceElement, null);
|
||||
});
|
||||
history.pushState(3, null, "#3");
|
||||
}, "defaults are as expected");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue