LibWeb: Add window.internals.getComputedRole(element)

This change adds a window.internals.getComputedLabel(element) function,
for use in testing ARIA-related behavior. It also patches the imported
WPT testdriver.js script’s test_driver.get_computed_role(element)
function to call our window.internals.getComputedRole(element) function.
This commit is contained in:
sideshowbarker 2024-12-06 16:29:11 +09:00 committed by Tim Ledbetter
commit c5966bbdcb
Notes: github-actions[bot] 2024-12-06 18:32:55 +00:00
4 changed files with 15 additions and 1 deletions

View file

@ -48,6 +48,7 @@ public:
void enable_cookies_on_file_domains();
void expire_cookies_with_time_offset(WebIDL::LongLong seconds);
String get_computed_role(DOM::Element& element);
String get_computed_label(DOM::Element& element);
static u16 get_echo_server_port();