We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3eae89 commit 16d5cdcCopy full SHA for 16d5cdc
src/test/rustdoc-gui/source-code-page.goml
@@ -2,9 +2,9 @@
2
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
3
// Check that we can click on the line number.
4
click: ".line-numbers > span:nth-child(4)" // This is the span for line 4.
5
-// Unfortunately, "#4" isn't a valid query selector, so we have to go around that limitation
6
-// by instead getting the nth span.
7
-assert-attribute: (".line-numbers > span:nth-child(4)", {"class": "line-highlighted"})
+// Ensure that the page URL was updated.
+assert-document-property: ({"URL": "#4"}, ENDS_WITH)
+assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"})
8
// We now check that the good spans are highlighted
9
goto: file://|DOC_PATH|/src/test_docs/lib.rs.html#4-6
10
assert-attribute-false: (".line-numbers > span:nth-child(3)", {"class": "line-highlighted"})
0 commit comments