1
Fork 0

rustdoc: fix source-code-page test

This commit is contained in:
cynecx 2021-10-11 00:15:50 +02:00 committed by Guillaume Gomez
parent ee0ca2d1c0
commit e2467f2c45

View 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: (50, 196) // This is the position of 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"})