-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for case insensitive support
- Loading branch information
1 parent
3b8de99
commit 106da77
Showing
15 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
click: ".srclink" | ||
assert: (".line-numbers", 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
assert: ("#functions") | ||
goto: ./struct.Foo.html | ||
assert: ("div.type-decl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
goto: file://|DOC_PATH|/insensitive_case_docs/struct.ab.html | ||
// Checks that the sidebar was filled. | ||
wait-for: ".sidebar-elems > .items > .sidebar-title" | ||
// Checks that the content has been loaded | ||
assert: ".impl-items > h4" | ||
// Checks that the collapse toggles have been generated as expected | ||
assert: ".impl-items > h4 > .collapse-toggle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//! The point of this crate is to test the insensitive case handling. | ||
|
||
#![crate_name = "insensitive_case_docs"] | ||
|
||
#![allow(non_camel_case_types)] | ||
|
||
/// This is ab. | ||
pub struct ab; | ||
|
||
impl ab { | ||
pub fn foo(&self) {} | ||
} | ||
|
||
/// This is another Ab! | ||
pub struct Ab; | ||
|
||
impl Ab { | ||
pub fn bar(&self) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
goto: file://|DOC_PATH|/index.html | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
goto: ./fn.check_list_code_block.html | ||
assert: ("pre.rust.fn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Check that the attributes are well positioned when javascript is disabled (since | ||
// there is no toggle to display) | ||
javascript: false | ||
goto: file://|DOC_PATH|/struct.Foo.html | ||
goto: file://|DOC_PATH|/test_docs/struct.Foo.html | ||
assert: (".attributes", {"margin-left": "0px"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// compile-flags: -Zunstable-options --generate-case-insensitive | ||
|
||
#![crate_name = "foo"] | ||
|
||
// @!has 'foo/struct.Aa.html' | ||
// @has 'foo/struct.aa.html' | ||
// @!has 'foo/struct.aa.html' '//h4[@id="method.new"]' | ||
pub struct aa; | ||
|
||
impl aa { | ||
pub fn foo(&self) {} | ||
} | ||
|
||
pub struct Aa; | ||
|
||
impl Aa { | ||
pub fn foo(&self) {} | ||
} |