File tree Expand file tree Collapse file tree 12 files changed +22
-24
lines changed
rustdoc-scrape-examples-macros/src
rustdoc-scrape-examples-multiple/src
rustdoc-scrape-examples-ordering/src
rustdoc-scrape-examples-remap/src
rustdoc-scrape-examples-test/src
rustdoc-scrape-examples-whitespace/src
rustdoc-with-out-dir-option/src
rustdoc-with-output-option/src
rustdoc-with-short-out-dir-option/src Expand file tree Collapse file tree 12 files changed +22
-24
lines changed Original file line number Diff line number Diff line change 11// Scraped example should only include line numbers for items b and c in ex.rs
2- // @ !has foobar/fn.f.html '//*[@class="src-line-numbers" ]' '14'
3- // @ has foobar/fn.f.html '//*[@class="src-line-numbers" ]' '15'
4- // @ has foobar/fn.f.html '//*[@class="src-line-numbers" ]' '21'
5- // @ !has foobar/fn.f.html '//*[@class="src-line-numbers" ]' '22'
2+ //@ !has foobar/fn.f.html '//span[@data-nosnippet ]' '14'
3+ //@ has foobar/fn.f.html '//span[@data-nosnippet ]' '15'
4+ //@ has foobar/fn.f.html '//span[@data-nosnippet ]' '21'
5+ //@ !has foobar/fn.f.html '//span[@data-nosnippet ]' '22'
66
77pub fn f ( ) { }
88
Original file line number Diff line number Diff line change 1- // @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//*[@class="prev"]' ''
2- // @has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
3- // @has src/ex/ex.rs.html
4- // @has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
1+ //@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
2+ //@ has src/ex/ex.rs.html
3+ //@ has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
54
65pub fn ok ( ) { }
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
2- // @ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
3- // @ has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
4- // @ has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
1+ //@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
2+ //@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
3+ //@ has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
4+ //@ has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
55
66pub fn ok ( _x : i32 ) { }
Original file line number Diff line number Diff line change 1- // @ has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
2- // @ has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
1+ //@ has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
2+ //@ has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
33
44#[ path = "a.rs" ]
55pub mod b;
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
1+ //@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
22
33pub fn ok ( ) { }
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
1+ //@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
22
33pub fn ok ( ) { }
Original file line number Diff line number Diff line change 1- // @ has test.css
2- // @ has foo/struct.Foo.html
3- // @ has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
1+ //@ has test.css
2+ //@ has foo/struct.Foo.html
3+ //@ has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
44pub struct Foo ;
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html
1+ //@ has foobar/fn.ok.html
22pub fn ok ( ) { }
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html
1+ //@ has foobar/fn.ok.html
22pub fn ok ( ) { }
Original file line number Diff line number Diff line change 1- // @ has foobar/fn.ok.html
1+ //@ has foobar/fn.ok.html
22pub fn ok ( ) { }
You can’t perform that action at this time.
0 commit comments