]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-gui/source-code-page.goml
Rollup merge of #91947 - ibraheemdev:io-error-other, r=joshtriplett
[rust.git] / src / test / rustdoc-gui / source-code-page.goml
index 5a49807e180b27d06fe1b15b157fb8dd14cff7b9..f3682f59d2141c758d720f2d9f0e667d5e74bd25 100644 (file)
@@ -1,6 +1,6 @@
 goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
 // Check that we can click on the line number.
-click: (40, 224) // This is the position of the span for line 4.
+click: ".line-numbers > span:nth-child(4)" // This is the span for line 4.
 // Unfortunately, "#4" isn't a valid query selector, so we have to go around that limitation
 // by instead getting the nth span.
 assert-attribute: (".line-numbers > span:nth-child(4)", {"class": "line-highlighted"})