Fix test directives that were accidentally ignored
This commit is contained in:
parent
96cfc75584
commit
660241d1d4
12 changed files with 22 additions and 24 deletions
|
@ -1,8 +1,8 @@
|
|||
// Scraped example should only include line numbers for items b and c in ex.rs
|
||||
// @!has foobar/fn.f.html '//*[@class="src-line-numbers"]' '14'
|
||||
// @has foobar/fn.f.html '//*[@class="src-line-numbers"]' '15'
|
||||
// @has foobar/fn.f.html '//*[@class="src-line-numbers"]' '21'
|
||||
// @!has foobar/fn.f.html '//*[@class="src-line-numbers"]' '22'
|
||||
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '14'
|
||||
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '15'
|
||||
//@ has foobar/fn.f.html '//span[@data-nosnippet]' '21'
|
||||
//@ !has foobar/fn.f.html '//span[@data-nosnippet]' '22'
|
||||
|
||||
pub fn f() {}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//*[@class="prev"]' ''
|
||||
// @has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
|
||||
// @has src/ex/ex.rs.html
|
||||
// @has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
|
||||
//@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' ''
|
||||
//@ has src/ex/ex.rs.html
|
||||
//@ has foobar/fn.ok.html '//a[@href="../src/ex/ex.rs.html#2"]' ''
|
||||
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
|
||||
// @has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
|
||||
// @has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
|
||||
// @has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
|
||||
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' 'ex2'
|
||||
//@ has foobar/fn.ok.html '//*[@class="more-scraped-examples"]' 'ex1'
|
||||
//@ has foobar/fn.ok.html '//*[@class="highlight focus"]' 'ok'
|
||||
//@ has foobar/fn.ok.html '//*[@class="highlight"]' 'ok'
|
||||
|
||||
pub fn ok(_x: i32) {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// @has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
|
||||
// @has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
|
||||
//@ has foobar/b/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
|
||||
//@ has foobar/c/fn.foo.html '//*[@class="scraped-example expanded"]' 'ex.rs'
|
||||
|
||||
#[path = "a.rs"]
|
||||
pub mod b;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
|
||||
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]' ''
|
||||
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// @has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
|
||||
//@ has foobar/fn.ok.html '//*[@class="docblock scraped-example-list"]//code' ' '
|
||||
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// @has test.css
|
||||
// @has foo/struct.Foo.html
|
||||
// @has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
|
||||
//@ has test.css
|
||||
//@ has foo/struct.Foo.html
|
||||
//@ has - '//*[@name="rustdoc-vars"]/@data-themes' 'test'
|
||||
pub struct Foo;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
//@ has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
//@ has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
// @has foobar/fn.ok.html
|
||||
//@ has foobar/fn.ok.html
|
||||
pub fn ok() {}
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
//@ check-pass
|
||||
//@ aux-crate:panic_item=panic-item.rs
|
||||
// @has unused_extern_crate/index.html
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// @compile-flags: -Zlint-mir
|
||||
//@ compile-flags: -Zlint-mir
|
||||
//@ check-pass
|
||||
|
||||
#![feature(inline_const_pat)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue