-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Implement @snapshot
check for htmldocck
#91209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="docblock"><p>Hello world! | ||
Goodbye! | ||
Hello again!</p> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="docblock"><p>Hello world!</p> | ||
<p>Goodbye! | ||
Hello again!</p> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
#![crate_name = "foo"] | ||
|
||
// @has 'foo/struct.S1.html' | ||
// @count - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p' \ | ||
// 1 | ||
// @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[1]' \ | ||
// 'Hello world! Goodbye! Hello again!' | ||
// @snapshot S1_top-doc - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]' | ||
|
||
#[doc = "Hello world!\n\n"] | ||
/// Goodbye! | ||
#[doc = " Hello again!\n"] | ||
pub struct S1; | ||
|
||
// @has 'foo/struct.S2.html' | ||
// @count - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p' \ | ||
// 2 | ||
// @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[1]' \ | ||
// 'Hello world!' | ||
// @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[2]' \ | ||
// 'Goodbye! Hello again!' | ||
// @snapshot S2_top-doc - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it make more sense to keep the original order for the argument? So first, the file we're checking and then the snapshot file. It would be incoherent with the rest otherwise. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I considered that, but then it looks a bit like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tihnk coherence is the most important thing. For me it's super strange that only There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Joshua gave a thumbs up on my previous message, so I think let's keep it at the beginning for now if that's okay. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can always be changed later on in any case so it's fine. |
||
|
||
/// Hello world! | ||
/// | ||
|
Uh oh!
There was an error while loading. Please reload this page.