@@ -31,17 +31,32 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/trait_bounds/index.html"
31
31
click: "#settings-menu"
32
32
wait-for: "#settings"
33
33
34
- store-size : (".example-wrap .rust code", {"width ": rust_width, "height ": rust_height})
35
- store-size : (".example-wrap .language-text code", {"width ": txt_width, "height ": txt_height})
34
+ store-property : (".example-wrap .rust code", {"scrollWidth ": rust_width, "scrollHeight ": rust_height})
35
+ store-property : (".example-wrap .language-text code", {"scrollWidth ": txt_width, "scrollHeight ": txt_height})
36
36
call-function: ("click-code-wrapping", {"expected": "true"})
37
- wait-for-size-false: (".example-wrap .rust code", {"width": |rust_width|, "height": |rust_height|})
37
+ wait-for-property-false: (
38
+ ".example-wrap .rust code",
39
+ {"scrollWidth": |rust_width|, "scrollHeight": |rust_height|},
40
+ )
38
41
39
- store-size: (".example-wrap .rust code", {"width": new_rust_width, "height": new_rust_height})
40
- store-size: (".example-wrap .language-text code", {"width": new_txt_width, "height": new_txt_height})
42
+ store-property: (
43
+ ".example-wrap .rust code",
44
+ {"scrollWidth": new_rust_width, "scrollHeight": new_rust_height},
45
+ )
46
+ store-property: (
47
+ ".example-wrap .language-text code",
48
+ {"scrollWidth": new_txt_width, "scrollHeight": new_txt_height},
49
+ )
41
50
42
51
assert: |rust_width| > |new_rust_width| && |rust_height| < |new_rust_height|
43
52
assert: |txt_width| > |new_txt_width| && |txt_height| < |new_txt_height|
44
53
45
54
call-function: ("click-code-wrapping", {"expected": "false"})
46
- wait-for-size: (".example-wrap .rust code", {"width": |rust_width|, "height": |rust_height|})
47
- assert-size: (".example-wrap .language-text code", {"width": |txt_width|, "height": |txt_height|})
55
+ wait-for-property: (
56
+ ".example-wrap .rust code",
57
+ {"scrollWidth": |rust_width|, "scrollHeight": |rust_height|},
58
+ )
59
+ assert-property: (
60
+ ".example-wrap .language-text code",
61
+ {"scrollWidth": |txt_width|, "scrollHeight": |txt_height|},
62
+ )
0 commit comments