Skip to content

Commit

Permalink
Add check for local-storage value when changing "display line numbers…
Browse files Browse the repository at this point in the history
…" settings
  • Loading branch information
GuillaumeGomez committed Dec 12, 2022
1 parent f34356e commit 21a2b64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/rustdoc-gui/docblock-code-block-line-number.goml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ assert-css: ("#settings", {"display": "block"})
click: "input#line-numbers"
wait-for: 100 // wait-for-false does not exist
assert-false: "pre.example-line-numbers"
assert-local-storage: {"rustdoc-line-numbers": "false" }

// Finally, turn it on again.
click: "input#line-numbers"
wait-for: "pre.example-line-numbers"
assert-local-storage: {"rustdoc-line-numbers": "true" }

0 comments on commit 21a2b64

Please sign in to comment.