Skip to content

Commit ae99e23

Browse files
committed
Add staged_api for tests
1 parent 43b9268 commit ae99e23

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

src/test/rustdoc-gui/headings.goml

+13
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,16 @@ assert-css: ("h2#top-doc-prose-title", {"font-size": "20.8px"})
154154
assert-css: ("h2#top-doc-prose-title", {"border-bottom-width": "1px"})
155155
assert-css: ("h3#top-doc-prose-sub-heading", {"font-size": "18.4px"})
156156
assert-css: ("h3#top-doc-prose-sub-heading", {"border-bottom-width": "1px"})
157+
158+
goto: file://|DOC_PATH|/staged_api/struct.Foo.html
159+
show-text: true
160+
local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"}
161+
assert-css: (".since", {"color": "rgb(128, 128, 128)"})
162+
163+
local-storage: {"rustdoc-theme": "dark", "rustdoc-use-system-theme": "false"}
164+
reload:
165+
assert-css: (".since", {"color": "rgb(128, 128, 128)"})
166+
167+
local-storage: {"rustdoc-theme": "ayu", "rustdoc-use-system-theme": "false"}
168+
reload:
169+
assert-css: (".since", {"color": "rgb(128, 128, 128)"})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file is automatically @generated by Cargo.
2+
# It is not intended for manual editing.
3+
version = 3
4+
5+
[[package]]
6+
name = "staged_api"
7+
version = "0.1.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "staged_api"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[lib]
7+
path = "lib.rs"
8+
9+
[features]
10+
default = ["some_feature"]
11+
some_feature = []
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(staged_api)]
2+
#![stable(feature = "some_feature", since = "1.3.5")]
3+
4+
#[stable(feature = "some_feature", since = "1.3.5")]
5+
pub struct Foo {}
6+
7+
impl Foo {
8+
#[stable(feature = "some_feature", since = "1.3.5")]
9+
pub fn bar() {}
10+
}

0 commit comments

Comments
 (0)