wdspec tests: Check correct node type instead of asserting error for script execution#39988
wdspec tests: Check correct node type instead of asserting error for script execution#39988
Conversation
Signed-off-by: Euclid <[email protected]>
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#55534) with upstreamable changes. |
Signed-off-by: Euclid <[email protected]>
|
The WebDriver spec seems very clear here, in the serializer we explicitly switch on whether the input object is an Element, not any Node:https://w3c.github.io/webdriver/#dfn-internal-json-clone and there's an assert in the get or create a web element reference that the input is in fact an Element: https://w3c.github.io/webdriver/#dfn-get-or-create-a-web-element-reference The spec could change here of course, but as it stands at present these tests are correct. |
Please note that the changes for the wpt tests are related to enumerable properties. This code we only hit in the fallback code for plain objects which are not considered Elements. |
2. Remove test unrelated to node Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#55534) title and body. |
jdm
left a comment
There was a problem hiding this comment.
Why are the two test files testing different things now?
Oh because I forgot to update the other one! |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#55534) title and body. |
|
Hm, what is the difference to #39988 which I just reviewed? It seems to map to web-platform-tests/wpt#55534 as well. |
It is the same, except some internal Servo manifest file update, which would be excluded by wpt-export bot. Once you are satisifed and approve the upstream, I can find someone to stamp this which automatically merge the upstream as well. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
1 similar comment
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#55534) title and body. |
Signed-off-by: Euclid Ye <[email protected]>
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#55534). |
#39988 replaced these faulty tests with another set of tests and we've been fully passing them. Somehow this is not caught by CI/expectation update script. Signed-off-by: Euclid Ye <[email protected]>
These tests suggest that attribute nodes, document etc. are invalid node. That is simply not true based on spec.
Only Firefox pass these tests, while Chrome/Safari fails.
https://wpt.fyi/results/webdriver/tests/classic/execute_script?label=master
There is an ongoing discussion: w3c/webdriver#1687 (comment)
--
EDIT: Instead of removing these tests, we check