Auto merge of #23820 - georgeroman:link_text_selectors_for_find_element_wd_commands, r=jdm

Implement Link and PartialLink text selectors for FindElement and related WebDriver commands

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23820)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-07-23 14:36:10 -04:00 committed by GitHub
commit dcce668d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 183 additions and 102 deletions

View file

@ -2,72 +2,27 @@
[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link&amp;text</a>-k&t\]]
expected: FAIL
[test_htmldocument[xpath-/html\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>&nbsp;partial link text&nbsp;</a>-link\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link<br>text</a>-link\ntext\]]
expected: FAIL
[test_xhtml_namespace[xpath-//*[name()='a'\]\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=# style='text-transform: uppercase'>partial link text</a>-LINK\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link text</a>-link\]]
expected: FAIL
[test_xhtml_namespace[tag name-a\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link&amp;text</a>-link&text\]]
expected: FAIL
[test_find_element[partial link text-link text\]]
expected: FAIL
[test_find_element_link_text[<a href=#>LINK TEXT</a>-LINK TEXT\]]
expected: FAIL
[test_xhtml_namespace[link text-full link text\]]
expected: FAIL
[test_find_element[link text-full link text\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link<br>text</a>-k\nt\]]
expected: FAIL
[test_find_element_link_text[<a href=#>&nbsp;link text&nbsp;</a>-link text\]]
expected: FAIL
[test_find_element_link_text[<a href=# style='text-transform: uppercase'>link text</a>-LINK TEXT\]]
expected: FAIL
[test_no_element[css selector-#wontExist\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>PARTIAL LINK TEXT</a>-LINK\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link text</a>-k t\]]
expected: FAIL
[test_xhtml_namespace[partial link text-link text\]]
expected: FAIL
[test_find_element[xpath-//a\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link text</a>-link text\]]
expected: FAIL
[test_no_browsing_context]
expected: ERROR

View file

@ -2,75 +2,30 @@
[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link&amp;text</a>-k&t\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>&nbsp;partial link text&nbsp;</a>-link\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link<br>text</a>-link\ntext\]]
expected: FAIL
[test_xhtml_namespace[xpath-//*[name()='a'\]\]]
expected: FAIL
[test_parent_htmldocument]
expected: FAIL
[test_find_element_partial_link_text[<a href=# style='text-transform: uppercase'>partial link text</a>-LINK\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link text</a>-link\]]
expected: FAIL
[test_xhtml_namespace[tag name-a\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link&amp;text</a>-link&text\]]
expected: FAIL
[test_find_element[partial link text-link text\]]
expected: FAIL
[test_find_element_link_text[<a href=#>LINK TEXT</a>-LINK TEXT\]]
expected: FAIL
[test_xhtml_namespace[link text-full link text\]]
expected: FAIL
[test_find_element[link text-full link text\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link<br>text</a>-k\nt\]]
expected: FAIL
[test_parent_of_document_node_errors]
expected: FAIL
[test_find_element_link_text[<a href=#>&nbsp;link text&nbsp;</a>-link text\]]
expected: FAIL
[test_find_element_link_text[<a href=# style='text-transform: uppercase'>link text</a>-LINK TEXT\]]
expected: FAIL
[test_no_element[css selector-#wontExist\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>PARTIAL LINK TEXT</a>-LINK\]]
expected: FAIL
[test_find_element_partial_link_text[<a href=#>partial link text</a>-k t\]]
expected: FAIL
[test_xhtml_namespace[partial link text-link text\]]
expected: FAIL
[test_find_element[xpath-//a\]]
expected: FAIL
[test_find_element_link_text[<a href=#>link text</a>-link text\]]
expected: FAIL
[test_no_browsing_context]
expected: ERROR

View file

@ -11,9 +11,6 @@
[test_xhtml_namespace[xpath-//*[name()='a'\]\]]
expected: FAIL
[test_find_elements[link text-full link text\]]
expected: FAIL
[test_find_elements_link_text[<a href=# style='text-transform: uppercase'>link text</a>-LINK TEXT\]]
expected: FAIL
@ -35,9 +32,6 @@
[test_xhtml_namespace[link text-full link text\]]
expected: FAIL
[test_find_elements[partial link text-link text\]]
expected: FAIL
[test_find_elements_partial_link_text[<a href=#>partial link text</a>-k t\]]
expected: FAIL

View file

@ -11,9 +11,6 @@
[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL
[test_find_elements[link text-full link text\]]
expected: FAIL
[test_find_elements_link_text[<a href=# style='text-transform: uppercase'>link text</a>-LINK TEXT\]]
expected: FAIL
@ -35,9 +32,6 @@
[test_xhtml_namespace[link text-full link text\]]
expected: FAIL
[test_find_elements[partial link text-link text\]]
expected: FAIL
[test_find_elements_partial_link_text[<a href=#>partial link text</a>-k t\]]
expected: FAIL