1 // This test checks the position of the `i` for the notable traits.
2 goto: file://|DOC_PATH|/test_docs/struct.NotableStructWithLongName.html
4 // We start with a wide screen.
6 // Checking they have the same y position.
7 compare-elements-position: (
8 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
9 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
12 // Checking they don't have the same x position.
13 compare-elements-position-false: (
14 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
15 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
18 // The `i` should be *after* the type.
20 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
24 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
29 // Now only the `i` should be on the next line.
31 compare-elements-position-false: (
32 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
33 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
37 // Now both the `i` and the struct name should be on the next line.
39 // Checking they have the same y position.
40 compare-elements-position: (
41 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
42 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
45 // Checking they don't have the same x position.
46 compare-elements-position-false: (
47 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
48 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
51 // The `i` should be *after* the type.
53 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
57 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
61 // Checking on mobile now.
63 // Checking they have the same y position.
64 compare-elements-position: (
65 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
66 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
69 // Checking they don't have the same x position.
70 compare-elements-position-false: (
71 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
72 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
75 // The `i` should be *after* the type.
77 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
81 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",
85 // Checking on very small mobile. The `i` should be on its own line.
87 compare-elements-position-false: (
88 "//*[@id='method.create_an_iterator_from_read']//a[text()='NotableStructWithLongName']",
89 "//*[@id='method.create_an_iterator_from_read']//*[@class='notable-traits']",