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
History
File Mode Size
support
10_1_support_1.js -rw-r--r-- 235 bytes
10_1_support_2.js -rw-r--r-- 169 bytes
addInlineTestsWithDOMManipulation.js -rw-r--r-- 1.3 KB
buildInlineWorker.js -rw-r--r-- 425 bytes
crossoriginScript.js -rw-r--r-- 145 bytes
crossoriginScript.js.headers -rw-r--r-- 31 bytes
externalScript.js -rw-r--r-- 19 bytes
injected-inline-script-allowed.sub.html -rw-r--r-- 814 bytes
injected-inline-script-blocked.sub.html -rw-r--r-- 913 bytes
inlineSuccessTest.js -rw-r--r-- 437 bytes
inlineTests.js -rw-r--r-- 418 bytes
javascript-window-open-blocked.html -rw-r--r-- 754 bytes
javascript-window-open-blocked.html.sub.headers -rw-r--r-- 361 bytes
nonce-enforce-blocked.html -rw-r--r-- 2.8 KB
script-src-1_1.html -rw-r--r-- 756 bytes
script-src-1_10.html -rw-r--r-- 1.2 KB
script-src-1_10_1.html -rw-r--r-- 730 bytes
script-src-1_2.html -rw-r--r-- 746 bytes
script-src-1_2_1.html -rw-r--r-- 723 bytes
script-src-1_3.html -rw-r--r-- 592 bytes
script-src-1_4.html -rw-r--r-- 1014 bytes
script-src-1_4_1.html -rw-r--r-- 1.3 KB
script-src-1_4_2.html -rw-r--r-- 1.0 KB
script-src-multiple-policies-multiple-hashing-algorithms.html -rw-r--r-- 820 bytes
script-src-multiple-policies-multiple-hashing-algorithms.html.sub.headers -rw-r--r-- 380 bytes
script-src-multiple-policies-one-using-hashing-algorithms.html -rw-r--r-- 826 bytes
script-src-multiple-policies-one-using-hashing-algorithms.html.sub.headers -rw-r--r-- 317 bytes
script-src-overrides-default-src.sub.html -rw-r--r-- 895 bytes
script-src-report-only-policy-works-with-external-hash-policy.html -rw-r--r-- 1.0 KB
script-src-report-only-policy-works-with-external-hash-policy.html.sub.headers -rw-r--r-- 317 bytes
script-src-report-only-policy-works-with-hash-policy.html -rw-r--r-- 1.0 KB
script-src-report-only-policy-works-with-hash-policy.html.sub.headers -rw-r--r-- 317 bytes
script-src-sri_hash.sub.html -rw-r--r-- 3.9 KB
script-src-sri_hash.sub.html.sub.headers -rw-r--r-- 429 bytes
script-src-strict_dynamic_and_unsafe_eval_eval.html -rw-r--r-- 1.1 KB
script-src-strict_dynamic_and_unsafe_eval_eval.html.headers -rw-r--r-- 236 bytes
script-src-strict_dynamic_and_unsafe_eval_new_function.html -rw-r--r-- 1.1 KB
script-src-strict_dynamic_and_unsafe_eval_new_function.html.headers -rw-r--r-- 236 bytes
script-src-strict_dynamic_discard_whitelist.html -rw-r--r-- 1.2 KB
script-src-strict_dynamic_discard_whitelist.html.headers -rw-r--r-- 229 bytes
script-src-strict_dynamic_double_policy_different_nonce.html -rw-r--r-- 2.7 KB
script-src-strict_dynamic_double_policy_different_nonce.html.headers -rw-r--r-- 287 bytes
script-src-strict_dynamic_double_policy_honor_whitelist.sub.html -rw-r--r-- 2.6 KB
script-src-strict_dynamic_double_policy_honor_whitelist.sub.html.headers -rw-r--r-- 279 bytes
script-src-strict_dynamic_double_policy_report_only.html -rw-r--r-- 1.8 KB
script-src-strict_dynamic_double_policy_report_only.html.headers -rw-r--r-- 277 bytes
script-src-strict_dynamic_eval.html -rw-r--r-- 1.2 KB
script-src-strict_dynamic_eval.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_hashes.html -rw-r--r-- 1.8 KB
script-src-strict_dynamic_hashes.html.headers -rw-r--r-- 330 bytes
script-src-strict_dynamic_in_img-src.html -rw-r--r-- 1.0 KB
script-src-strict_dynamic_in_img-src.html.headers -rw-r--r-- 212 bytes
script-src-strict_dynamic_javascript_uri.html -rw-r--r-- 1.1 KB
script-src-strict_dynamic_javascript_uri.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_meta_tag.html -rw-r--r-- 3.1 KB
script-src-strict_dynamic_meta_tag.html.headers -rw-r--r-- 155 bytes
script-src-strict_dynamic_new_function.html -rw-r--r-- 1.2 KB
script-src-strict_dynamic_new_function.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_non_parser_inserted.html -rw-r--r-- 3.1 KB
script-src-strict_dynamic_non_parser_inserted.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_non_parser_inserted_incorrect_nonce.html -rw-r--r-- 983 bytes
script-src-strict_dynamic_non_parser_inserted_incorrect_nonce.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_parser_inserted.html -rw-r--r-- 10.1 KB
script-src-strict_dynamic_parser_inserted.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_parser_inserted_correct_nonce.html -rw-r--r-- 4.8 KB
script-src-strict_dynamic_parser_inserted_correct_nonce.html.headers -rw-r--r-- 222 bytes
script-src-strict_dynamic_worker-importScripts.https.html -rw-r--r-- 665 bytes
script-src-strict_dynamic_worker.https.html -rw-r--r-- 648 bytes
script-src-wildcards-disallowed.html -rw-r--r-- 2.5 KB
scripthash-allowed.sub.html -rw-r--r-- 1.4 KB
scripthash-basic-blocked.sub.html -rw-r--r-- 2.2 KB
scripthash-default-src.sub.html -rw-r--r-- 676 bytes
scripthash-ignore-unsafeinline.sub.html -rw-r--r-- 1.9 KB
scripthash-unicode-normalization.sub.html -rw-r--r-- 2.7 KB
scriptnonce-allowed.sub.html -rw-r--r-- 2.1 KB
scriptnonce-and-scripthash.sub.html -rw-r--r-- 2.5 KB
scriptnonce-basic-blocked.sub.html -rw-r--r-- 1.4 KB
scriptnonce-ignore-unsafeinline.sub.html -rw-r--r-- 2.4 KB
scriptnonce-redirect.sub.html -rw-r--r-- 2.0 KB
simpleSourcedScript.js -rw-r--r-- 52 bytes
srcdoc-doesnt-bypass-script-src.sub.html -rw-r--r-- 1.3 KB
worker-eval-blocked.sub.html -rw-r--r-- 1.2 KB
worker-function-function-blocked.sub.html -rw-r--r-- 1.3 KB
worker-importscripts-blocked.sub.html -rw-r--r-- 1.3 KB
worker-script-src.sub.html -rw-r--r-- 983 bytes
worker-set-timeout-blocked.sub.html -rw-r--r-- 1.0 KB

back to top