mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
webdriver chore: check browsing context existence before handling user prompt when required (#38142)
Thanks to Trong with #38035, we can finally handle user prompt. This PR is mainly dirty work: 1. Add browsing context check before handling user prompt when required, according to spec. 2. Reduce IPC by removing redundant context existence check. 3. Add many missing docs. Testing: New passing cases and turn some ERROR into FAIL. --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
9a5a33190d
commit
f81ae1f57f
8 changed files with 165 additions and 89 deletions
|
@ -1,15 +1,6 @@
|
|||
[events.py]
|
||||
[test_form_control_send_text[input\]]
|
||||
expected: ERROR
|
||||
expected: FAIL
|
||||
|
||||
[test_form_control_send_text[textarea\]]
|
||||
expected: ERROR
|
||||
|
||||
[test_file_upload]
|
||||
expected: ERROR
|
||||
|
||||
[test_not_blurred[input\]]
|
||||
expected: ERROR
|
||||
|
||||
[test_not_blurred[textarea\]]
|
||||
expected: ERROR
|
||||
expected: FAIL
|
||||
|
|
|
@ -19,3 +19,6 @@
|
|||
|
||||
[test_readonly_element]
|
||||
expected: FAIL
|
||||
|
||||
[test_iframe_is_interactable]
|
||||
expected: FAIL
|
||||
|
|
|
@ -7,6 +7,3 @@
|
|||
|
||||
[test_get_prompt_text]
|
||||
expected: FAIL
|
||||
|
||||
[test_unexpected_alert]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[user_prompts.py]
|
||||
expected: TIMEOUT
|
||||
[test_accept[capabilities0-alert-None\]]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -44,12 +43,3 @@
|
|||
|
||||
[test_ignore[capabilities0-prompt\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_default[alert-None\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_default[confirm-False\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_default[prompt-None\]]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[pointer_contextmenu.py]
|
||||
[test_control_click[\\ue051-ctrlKey\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_release_control_click]
|
||||
expected: FAIL
|
|
@ -1,12 +0,0 @@
|
|||
[wheel.py]
|
||||
[test_scroll_shadow_tree[outer-closed\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_scroll_shadow_tree[inner-closed\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_scroll_shadow_tree[outer-open\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_scroll_shadow_tree[inner-open\]]
|
||||
expected: FAIL
|
|
@ -8,9 +8,6 @@
|
|||
[test_invalid_input[text1\]]
|
||||
expected: ERROR
|
||||
|
||||
[test_invalid_input[text2\]]
|
||||
expected: ERROR
|
||||
|
||||
[test_invalid_input[42\]]
|
||||
expected: ERROR
|
||||
|
||||
|
@ -36,16 +33,16 @@
|
|||
expected: FAIL
|
||||
|
||||
[test_send_alert_text[\]]
|
||||
expected: ERROR
|
||||
expected: FAIL
|
||||
|
||||
[test_send_alert_text[Federer\]]
|
||||
expected: ERROR
|
||||
expected: FAIL
|
||||
|
||||
[test_send_alert_text[ Fed erer \]]
|
||||
expected: FAIL
|
||||
|
||||
[test_send_alert_text[Fed\\terer\]]
|
||||
expected: ERROR
|
||||
expected: FAIL
|
||||
|
||||
[test_unexpected_alert]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue