about summary refs log tree commit diff
path: root/tests/rustdoc-gui
AgeCommit message (Collapse)AuthorLines
2023-08-12Migrate GUI colors test to original CSS color formatGuillaume Gomez-63/+63
2023-08-08Migrate GUI colors test to original CSS color formatGuillaume Gomez-36/+36
2023-08-06Migrate GUI colors test to original CSS color formatGuillaume Gomez-3/+3
2023-08-05Migrate GUI colors test to original CSS color formatGuillaume Gomez-6/+6
2023-08-04Rollup merge of #114475 - GuillaumeGomez:migrate-gui-test-color-27, r=notriddleMichael Goulet-6/+6
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-08-04Migrate GUI colors test to original CSS color formatGuillaume Gomez-6/+6
2023-08-04Rollup merge of #114404 - GuillaumeGomez:migrate-gui-test-color-26, r=notriddleMatthias Krüger-1/+1
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. Seems like this one was forgotten... r? `@notriddle`
2023-08-04Rollup merge of #114348 - GuillaumeGomez:migrate-gui-test-color-25, r=notriddleMatthias Krüger-43/+30
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-08-03Add `internal_features` lintNilstrieb-0/+2
It lints against features that are inteded to be internal to the compiler and standard library. Implements MCP #596. We allow `internal_features` in the standard library and compiler as those use many features and this _is_ the standard library from the "internal to the compiler and standard library" after all. Marking some features as internal wasn't exactly the most scientific approach, I just marked some mostly obvious features. While there is a categorization in the macro, it's not very well upheld (should probably be fixed in another PR). We always pass `-Ainternal_features` in the testsuite About 400 UI tests and several other tests use internal features. Instead of throwing the attribute on each one, just always allow them. There's nothing wrong with testing internal features^^
2023-08-03Migrate GUI colors test to original CSS color formatGuillaume Gomez-1/+1
2023-08-02Migrate GUI colors test to original CSS color formatGuillaume Gomez-43/+30
2023-07-31Migrate GUI colors test to original CSS color formatGuillaume Gomez-8/+8
2023-07-23Migrate GUI colors test to original CSS color formatGuillaume Gomez-2/+2
2023-07-22Migrate GUI colors test to original CSS color formatGuillaume Gomez-24/+25
2023-07-18Update rustdoc GUI testsGuillaume Gomez-3/+3
2023-07-15Rollup merge of #113724 - GuillaumeGomez:migrate-gui-test-color-21, r=notriddleMatthias Krüger-10/+10
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-07-15Migrate GUI colors test to original CSS color formatGuillaume Gomez-10/+10
2023-07-14rustdoc: use `src` consistently over `source` in codeMichael Howell-64/+64
The CSS uses an inconsistent mix of both. This commit switches it to always use `src`.
2023-07-12Update jump to def testsGuillaume Gomez-3/+3
2023-07-08Migrate GUI colors test to original CSS color formatGuillaume Gomez-6/+6
2023-07-03Rollup merge of #113285 - GuillaumeGomez:display-long-inline-cfg, r=notriddleGuillaume Gomez-1/+20
[rustdoc] Fix display of long inline cfg labels Fixes #87957. Fixes #112880. Before: ![Screenshot from 2023-07-03 13-25-47](https://github.com/rust-lang/rust/assets/3050060/401e2c6b-2cfd-4ae3-9d15-b5e1dfec4201) After: ![Screenshot from 2023-07-03 13-24-49](https://github.com/rust-lang/rust/assets/3050060/e42a34a8-bf60-409d-8a0c-1669d09e7e1e) r? `@notriddle`
2023-07-03Add GUI test for long inline cfg labels displayGuillaume Gomez-1/+20
2023-07-02Rollup merge of #113258 - GuillaumeGomez:migrate-gui-test-color-19, r=notriddleMatthias Krüger-15/+15
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-07-02Auto merge of #108537 - ↵bors-1/+1
GuillaumeGomez:rustdoc-search-whitespace-as-separator, r=notriddle rustdoc: Allow whitespace as path separator like double colon Fixes https://github.com/rust-lang/rust/issues/108447. I think it makes sense since it allows more common cases, however it also makes the syntax heavier. Not sure what the rest of the team thinks about it. In any case we'll need to go through FCP. Full explanation for the changes is available [here](https://github.com/rust-lang/rust/pull/108537#issuecomment-1589480564). r? `@notriddle`
2023-07-02Migrate GUI colors test to original CSS color formatGuillaume Gomez-15/+15
2023-07-02Rollup merge of #113228 - GuillaumeGomez:migrate-gui-test-color-18, r=notriddleMatthias Krüger-9/+9
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? ``@notriddle``
2023-07-01Migrate GUI colors test to original CSS color formatGuillaume Gomez-9/+9
2023-06-30Improve search-result-display.goml testGuillaume Gomez-4/+5
2023-06-28Update GUI testsGuillaume Gomez-11/+37
2023-06-25Rollup merge of #113023 - GuillaumeGomez:migrate-gui-test-color-17, r=notriddleMatthias Krüger-3/+3
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-06-25Migrate GUI colors test to original CSS color formatGuillaume Gomez-3/+3
2023-06-25Rollup merge of #112937 - camelid:align-typenames, r=notriddle,GuillaumeGomezMatthias Krüger-1/+2
rustdoc: Align search results horizontally for easy scanning The recent PR #110688 added info about an item's kind before its name in search results. However, because the kind and name are inline with no alignment, it's now hard to visually scan downward through the search results, looking at item names. This PR fixes that by horizontally aligning search results such that there are now two columns of information. r? `@GuillaumeGomez`
2023-06-24rustdoc: Update GUI testNoah Lev-1/+2
2023-06-24Migrate GUI colors test to original CSS color formatGuillaume Gomez-30/+30
2023-06-23Rollup merge of #112962 - GuillaumeGomez:fix-rustdoc-gui-tester, r=ozkanonurMatthias Krüger-1/+4
Fix rustdoc gui tester Problem was that the `main` was always exiting with `0`, whether or not there was an error. It led to failing GUI tests being ignored in the CI since no one saw them. r? ````@klensy````
2023-06-23Fix GUI test for popoverGuillaume Gomez-2/+2
2023-06-23Fix failing rustdoc GUI testGuillaume Gomez-1/+4
2023-06-21Rollup merge of #112894 - GuillaumeGomez:gui-fields-display, r=notriddleGuillaume Gomez-0/+39
Fix union fields display ![Screenshot from 2023-06-21 16-47-24](https://github.com/rust-lang/rust/assets/3050060/833b0fe6-7fb6-4371-86c3-d82fa0c3fe49) So two bugs in this screenshot: no whitespace between field name and type name, both fields are on the same line. Both problems come from issues in the templates because all whitespace are removed if a askama "command" follows. r? `@notriddle`
2023-06-21Add test to prevent regression for fields displayGuillaume Gomez-0/+39
2023-06-20tests: add test for color of item kindAlexis (Poliorcetics) Bourget-0/+6
2023-06-17Rollup merge of #112707 - GuillaumeGomez:back-in-history-fix, r=notriddleMatthias Krüger-1/+8
[rustdoc] Fix invalid handling of "going back in history" when "go to only search result" setting is enabled You can test the fix [here](https://rustdoc.crud.net/imperio/back-in-history-fix/lib2/index.html). Enable "Directly go to item in search if there is only one result", then search for `HasALongTraitWithParams` and finally go back to previous page. It should be back on the `index.html` page. The reason for this bug is that the JS state is cached as is, so when we go back to the page, it resumes where it was left, somewhat (very weird), meaning the search is run again etc. The best way to handle this is to force the JS re-execution in this case so that it doesn't try to resume from where it left and then lead us back to the current page. r? ``@notriddle``
2023-06-16Add regression test for #112676Guillaume Gomez-1/+8
2023-06-16Auto merge of #110688 - GuillaumeGomez:result-search-type, r=notriddle,jshabors-29/+6
rustdoc: Add search result item types after their name Here what it looks like: ![Screenshot from 2023-04-22 15-16-58](https://user-images.githubusercontent.com/3050060/233789566-b5f3f625-3b78-4c56-a7ee-0a4f2d62e667.png) The idea is to improve accessibility by providing this information directly in the text and not only in the text color. Currently we already use it for doc aliases and for primitive types, so I extended it to all types. r? `@notriddle`
2023-06-14Rollup merge of #112613 - GuillaumeGomez:fix-gui-test-windows, r=notriddleMatthias Krüger-15/+15
Fix rustdoc-gui tests on Windows The browser-ui-test update contains fixes needed for backslash handling (they were not correctly escaped). Since we have a mix of slash and backslash in some tests, I replaced `DOC_FOLDER` variable backslashes with slashes. And finally it seemed like the unicode escaped wasn't much appreciated on Windows for some reason so I used the character directly. cc `@klensy` r? `@notriddle`
2023-06-14Fix `href` attribute value check on Windows (`DOC_PATH` lacks an extra `/`)Guillaume Gomez-12/+12
2023-06-14Update rustdoc-gui testGuillaume Gomez-1/+1
2023-06-14Replace unicode value with character in shortcuts.goml testGuillaume Gomez-3/+3
2023-06-11Migrate GUI colors test to original CSS color formatGuillaume Gomez-11/+11
2023-06-10Migrate GUI colors test to original CSS color formatGuillaume Gomez-2/+2
2023-06-07Migrate GUI colors test to original CSS color formatGuillaume Gomez-3/+3