mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
Tests: Move Ladybird specific testdriver code to testdriver-vendor.js
This commit is contained in:
parent
4b069344e0
commit
1ff556a2bd
Notes:
github-actions[bot]
2024-12-11 08:49:29 +00:00
Author: https://github.com/tcl3
Commit: 1ff556a2bd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2868
Reviewed-by: https://github.com/trflynn89
2 changed files with 9 additions and 11 deletions
|
@ -1 +1,7 @@
|
|||
// This file intentionally left blank
|
||||
window.test_driver_internal.get_computed_label = async function(element) {
|
||||
return await window.internals.getComputedLabel(element);
|
||||
};
|
||||
|
||||
window.test_driver_internal.get_computed_role = async function(element) {
|
||||
return await window.internals.getComputedRole(element);
|
||||
};
|
||||
|
|
|
@ -233,11 +233,7 @@
|
|||
* rejected in the cases the WebDriver command errors
|
||||
*/
|
||||
get_computed_label: async function(element) {
|
||||
// XXX: Ladybird-specific change: Upstream WPT calls
|
||||
// window.test_driver_internal.get_computed_label(element) here,
|
||||
// but we’ve changed that to our Ladybird-specific
|
||||
// window.internals.getComputedLabel(el).
|
||||
let label = await window.internals.getComputedLabel(element);
|
||||
let label = await window.test_driver_internal.get_computed_label(element);
|
||||
return label;
|
||||
},
|
||||
|
||||
|
@ -254,11 +250,7 @@
|
|||
* rejected in the cases the WebDriver command errors
|
||||
*/
|
||||
get_computed_role: async function(element) {
|
||||
// XXX: Ladybird-specific change: Upstream WPT calls
|
||||
// window.test_driver_internal.get_computed_role(element) here,
|
||||
// but we’ve changed that to our Ladybird-specific
|
||||
// window.internals.getComputedRole(el).
|
||||
let role = await window.internals.getComputedRole(element);
|
||||
let role = await window.test_driver_internal.get_computed_role(element);
|
||||
return role;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue