Revision 89ba9443f1d80b2bea3a33477b1ac53585fbb16d authored by jimevans on 16 March 2018, 14:46:32 UTC, committed by Andreas Tolfsen on 16 March 2018, 14:46:32 UTC
When the context element is `document.documentElement`, and an attempt is made to find elements from that context element using an XPath of `..`, a snapshot is returned containing the `document` object. While this is apparently the correct behavior for XPath, the WebDriver spec says that if the object in the snapshot is not an element, we should return an error with error code "invalid selector." The test_parent_htmldocument test in both find_element_from_element.py and find_elements_from_element.py expect a success in this case. This commit changes the tests to correctly expect an error from the driver.
1 parent 1cbb928
File | Mode | Size |
---|---|---|
media | ||
alert-pass.js | -rw-r--r-- | 21 bytes |
alertAssert.sub.js | -rw-r--r-- | 1.3 KB |
checkReport.sub.js | -rw-r--r-- | 5.1 KB |
dedicated-worker-helper.js | -rw-r--r-- | 166 bytes |
document-write-alert-fail.js | -rw-r--r-- | 122 bytes |
echo-policy.py | -rw-r--r-- | 190 bytes |
fail.asis | -rw-r--r-- | 77 bytes |
fail.html | -rw-r--r-- | 66 bytes |
fail.js | -rw-r--r-- | 45 bytes |
fail.png | -rw-r--r-- | 759 bytes |
fonts.css | -rw-r--r-- | 124 bytes |
import-scripts.js | -rw-r--r-- | 113 bytes |
inject-image.js | -rw-r--r-- | 176 bytes |
inject-image.sub.js | -rw-r--r-- | 164 bytes |
logTest.sub.js | -rw-r--r-- | 1.3 KB |
manifest.json | -rw-r--r-- | 144 bytes |
nonce-should-be-blocked.js | -rw-r--r-- | 89 bytes |
pass.png | -rw-r--r-- | 1.6 KB |
pass2.png | -rw-r--r-- | 1.6 KB |
ping.js | -rw-r--r-- | 429 bytes |
post-message.js | -rw-r--r-- | 38 bytes |
postmessage-fail.html | -rw-r--r-- | 64 bytes |
postmessage-pass-to-opener.html | -rw-r--r-- | 65 bytes |
postmessage-pass.html | -rw-r--r-- | 64 bytes |
prefetch-helper.js | -rw-r--r-- | 1.8 KB |
prefetch-subresource.css | -rw-r--r-- | 111 bytes |
prefetch-subresource.css.headers | -rw-r--r-- | 63 bytes |
report.py | -rw-r--r-- | 2.1 KB |
resource.py | -rw-r--r-- | 154 bytes |
service-worker-helper.js | -rw-r--r-- | 174 bytes |
shared-worker-helper.js | -rw-r--r-- | 173 bytes |
siblingPath.js | -rw-r--r-- | 357 bytes |
testharness-helper.js | -rw-r--r-- | 4.7 KB |
var-a.js | -rw-r--r-- | 15 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...