about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/source-code-page.goml
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-20 05:47:13 +0000
committerbors <bors@rust-lang.org>2021-06-20 05:47:13 +0000
commit9543636cd6609cd2a9880da8f93aac96192ae40a (patch)
treef56b86ac04db709039172a44dafd37174d23ffe8 /src/test/rustdoc-gui/source-code-page.goml
parent192920c22bc8433ab14706ee0829e707d119b74f (diff)
parent1e222ba58aded9a220c5a270e48b47c2878a50fb (diff)
Auto merge of #86468 - GuillaumeGomez:update-browser-ui-test-version, r=jsha
Update browser-ui-test version

It greatly improves the test readability (thanks to `@jsha` for the suggestions!).

r? `@jsha`
Diffstat (limited to 'src/test/rustdoc-gui/source-code-page.goml')
-rw-r--r--src/test/rustdoc-gui/source-code-page.goml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml
index ff33a541a18..20396e26895 100644
--- a/src/test/rustdoc-gui/source-code-page.goml
+++ b/src/test/rustdoc-gui/source-code-page.goml
@@ -3,11 +3,11 @@ goto: file://|DOC_PATH|/src/test_docs/lib.rs.html
 click: (40, 224) // 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: (".line-numbers > span:nth-child(4)", "class", "line-highlighted")
+assert-attr: (".line-numbers > span:nth-child(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
-assert-false: (".line-numbers > span:nth-child(3)", "class", "line-highlighted")
-assert: (".line-numbers > span:nth-child(4)", "class", "line-highlighted")
-assert: (".line-numbers > span:nth-child(5)", "class", "line-highlighted")
-assert: (".line-numbers > span:nth-child(6)", "class", "line-highlighted")
-assert-false: (".line-numbers > span:nth-child(7)", "class", "line-highlighted")
+assert-attr-false: (".line-numbers > span:nth-child(3)", {"class": "line-highlighted"})
+assert-attr: (".line-numbers > span:nth-child(4)", {"class": "line-highlighted"})
+assert-attr: (".line-numbers > span:nth-child(5)", {"class": "line-highlighted"})
+assert-attr: (".line-numbers > span:nth-child(6)", {"class": "line-highlighted"})
+assert-attr-false: (".line-numbers > span:nth-child(7)", {"class": "line-highlighted"})