mirror of
https://github.com/servo/servo.git
synced 2025-09-15 01:18:22 +01:00
script: Support decomposing ShadowRoot from mozjs HandleValue
(#38984)
- Add `ShadowRoot` to `JSValue` to avoid `WebDriverJSError::UnknownType`, and `JavaScriptEvaluationError::SerializationError` when execute JS from embedder. - Add unit test. - Move [is_detached](https://w3c.github.io/webdriver/#dfn-is-detached) to `fn is_detached` to be reused. - Other random simplification. Testing: WebDriver conformance tests. --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
5308228436
commit
3ac226e841
12 changed files with 43 additions and 39 deletions
|
@ -35,8 +35,5 @@
|
|||
[test_element_reference[frame\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[window\]]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,13 +1,4 @@
|
|||
[node.py]
|
||||
[test_detached_shadow_root[top_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_detached_shadow_root[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_not_supported_nodes[attribute\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -35,8 +35,5 @@
|
|||
[test_element_reference[frame\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_element_reference[window\]]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,13 +1,4 @@
|
|||
[node.py]
|
||||
[test_detached_shadow_root[top_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_detached_shadow_root[child_context\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_web_reference[shadow-root\]]
|
||||
expected: FAIL
|
||||
|
||||
[test_not_supported_nodes[attribute\]]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
[get.py]
|
||||
[test_no_browsing_context]
|
||||
expected: FAIL
|
||||
|
||||
[test_web_reference[shadowRoot-ShadowRoot\]]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue