]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc-gui/fields.goml
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / rustdoc-gui / fields.goml
1 // This test checks that fields are displayed as expected (one by line).
2 go-to: "file://" + |DOC_PATH| + "/test_docs/fields/struct.Struct.html"
3 store-position: ("#structfield\.a", {"y": a_y})
4 store-position: ("#structfield\.b", {"y": b_y})
5 assert: |a_y| < |b_y|
6
7 go-to: "file://" + |DOC_PATH| + "/test_docs/fields/union.Union.html"
8 store-position: ("#structfield\.a", {"y": a_y})
9 store-position: ("#structfield\.b", {"y": b_y})
10 assert: |a_y| < |b_y|
11
12 go-to: "file://" + |DOC_PATH| + "/test_docs/fields/enum.Enum.html"
13 store-position: ("#variant\.A\.field\.a", {"y": a_y})
14 store-position: ("#variant\.A\.field\.b", {"y": b_y})
15 assert: |a_y| < |b_y|
16 store-position: ("#variant\.B\.field\.a", {"y": a_y})
17 store-position: ("#variant\.B\.field\.b", {"y": b_y})
18 assert: |a_y| < |b_y|