Update rustdoc-gui test to new browser-ui-test version
This commit is contained in:
parent
6d4013d983
commit
8d19d53c60
77 changed files with 149 additions and 149 deletions
|
@ -1,12 +1,12 @@
|
|||
// Checks that the interactions with the source code pages are working as expected.
|
||||
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
|
||||
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
||||
// Check that we can click on the line number.
|
||||
click: ".src-line-numbers > span:nth-child(4)" // This is the span for line 4.
|
||||
// Ensure that the page URL was updated.
|
||||
assert-document-property: ({"URL": "lib.rs.html#4"}, ENDS_WITH)
|
||||
assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"})
|
||||
// We now check that the good spans are highlighted
|
||||
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html#4-6
|
||||
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html#4-6"
|
||||
assert-attribute-false: (".src-line-numbers > span:nth-child(3)", {"class": "line-highlighted"})
|
||||
assert-attribute: (".src-line-numbers > span:nth-child(4)", {"class": "line-highlighted"})
|
||||
assert-attribute: (".src-line-numbers > span:nth-child(5)", {"class": "line-highlighted"})
|
||||
|
@ -21,7 +21,7 @@ assert-css: (".src-line-numbers", {"text-align": "right"})
|
|||
// Now let's check that clicking on something else than the line number doesn't
|
||||
// do anything (and certainly not add a `#NaN` to the URL!).
|
||||
show-text: true
|
||||
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
|
||||
goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html"
|
||||
// We use this assert-position to know where we will click.
|
||||
assert-position: ("//*[@id='1']", {"x": 104, "y": 103})
|
||||
// We click on the left of the "1" span but still in the "src-line-number" `<pre>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue