Add test for scrape-examples next/prev buttons
This commit is contained in:
parent
83ba42526f
commit
5a9fffc593
@ -1,4 +1,17 @@
|
|||||||
goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test.html"
|
goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test.html"
|
||||||
|
|
||||||
|
store-property: (initialScrollTop, ".scraped-example-list > .scraped-example pre", "scrollTop")
|
||||||
|
focus: ".scraped-example-list > .scraped-example .next"
|
||||||
|
press-key: "Enter"
|
||||||
|
assert-property-false: (".scraped-example-list > .scraped-example pre", {
|
||||||
|
"scrollTop": |initialScrollTop|
|
||||||
|
})
|
||||||
|
focus: ".scraped-example-list > .scraped-example .prev"
|
||||||
|
press-key: "Enter"
|
||||||
|
assert-property: (".scraped-example-list > .scraped-example pre", {
|
||||||
|
"scrollTop": |initialScrollTop|
|
||||||
|
})
|
||||||
|
|
||||||
store-property: (smallOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
|
store-property: (smallOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
|
||||||
assert-property-false: (".scraped-example-list > .scraped-example pre", {
|
assert-property-false: (".scraped-example-list > .scraped-example pre", {
|
||||||
"scrollHeight": |smallOffsetHeight|
|
"scrollHeight": |smallOffsetHeight|
|
||||||
@ -11,4 +24,4 @@ assert-property-false: (".scraped-example-list > .scraped-example pre", {
|
|||||||
store-property: (fullOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
|
store-property: (fullOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
|
||||||
assert-property: (".scraped-example-list > .scraped-example pre", {
|
assert-property: (".scraped-example-list > .scraped-example pre", {
|
||||||
"scrollHeight": |fullOffsetHeight|
|
"scrollHeight": |fullOffsetHeight|
|
||||||
})
|
})
|
@ -22,4 +22,5 @@ fn main() {
|
|||||||
println!("hello world!");
|
println!("hello world!");
|
||||||
println!("hello world!");
|
println!("hello world!");
|
||||||
}
|
}
|
||||||
|
scrape_examples::test();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user