@@ -31,17 +31,32 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/trait_bounds/index.html"
3131click: "#settings-menu"
3232wait-for: "#settings"
3333
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})
3636call-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+ )
3841
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+ )
4150
4251assert: |rust_width| > |new_rust_width| && |rust_height| < |new_rust_height|
4352assert: |txt_width| > |new_txt_width| && |txt_height| < |new_txt_height|
4453
4554call-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