Commit Graph

140 Commits

Author SHA1 Message Date
Guillaume Gomez 08ca8246f8 Migrate GUI colors test to original CSS color format 2023-08-06 12:46:35 +02:00
Guillaume Gomez 9625fc5839 Migrate GUI colors test to original CSS color format 2023-08-05 12:47:05 +02:00
Michael Goulet a7f0900a2a
Rollup merge of #114475 - GuillaumeGomez:migrate-gui-test-color-27, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-08-04 19:47:38 -07:00
Guillaume Gomez 85ed2feb67 Migrate GUI colors test to original CSS color format 2023-08-04 19:45:32 +02:00
Matthias Krüger 472b273bcf
Rollup merge of #114404 - GuillaumeGomez:migrate-gui-test-color-26, r=notriddle
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-04 07:25:47 +02:00
Matthias Krüger fb15056663
Rollup merge of #114348 - GuillaumeGomez:migrate-gui-test-color-25, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-08-04 07:25:46 +02:00
Nilstrieb 5830ca216d Add `internal_features` lint
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-03 14:50:50 +02:00
Guillaume Gomez d0ed4edfc6 Migrate GUI colors test to original CSS color format 2023-08-03 11:25:33 +02:00
Guillaume Gomez c7db0f4751 Migrate GUI colors test to original CSS color format 2023-08-02 00:44:41 +02:00
Guillaume Gomez c77329cb04 Migrate GUI colors test to original CSS color format 2023-07-31 00:48:17 +02:00
Guillaume Gomez e06633fde6 Migrate GUI colors test to original CSS color format 2023-07-23 13:05:40 +02:00
Guillaume Gomez d4ce83c385 Migrate GUI colors test to original CSS color format 2023-07-22 14:01:23 +02:00
Guillaume Gomez 8f5787abba Update rustdoc GUI tests 2023-07-18 14:34:24 +02:00
Matthias Krüger 5f94c876ad
Rollup merge of #113724 - GuillaumeGomez:migrate-gui-test-color-21, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-07-15 19:42:53 +02:00
Guillaume Gomez 2778b71155 Migrate GUI colors test to original CSS color format 2023-07-15 15:14:06 +02:00
Michael Howell 34bc8fbea3 rustdoc: use `src` consistently over `source` in code
The CSS uses an inconsistent mix of both. This commit switches
it to always use `src`.
2023-07-14 16:38:01 -07:00
Guillaume Gomez 6d44879eb3 Update jump to def tests 2023-07-12 16:50:43 +02:00
Guillaume Gomez 50b4d1f413 Migrate GUI colors test to original CSS color format 2023-07-08 14:56:15 +02:00
Guillaume Gomez ef21fd57c5
Rollup merge of #113285 - GuillaumeGomez:display-long-inline-cfg, r=notriddle
[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-03 18:46:14 +02:00
Guillaume Gomez 9d130582ab Add GUI test for long inline cfg labels display 2023-07-03 13:26:40 +02:00
Matthias Krüger 0aac35db10
Rollup merge of #113258 - GuillaumeGomez:migrate-gui-test-color-19, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-07-02 23:30:46 +02:00
bors bf0e22b298 Auto merge of #108537 - 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-02 18:49:29 +00:00
Guillaume Gomez c7847e991a Migrate GUI colors test to original CSS color format 2023-07-02 11:15:23 +02:00
Matthias Krüger 37c50653fe
Rollup merge of #113228 - GuillaumeGomez:migrate-gui-test-color-18, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? ``@notriddle``
2023-07-02 10:27:20 +02:00
Guillaume Gomez c607e206be Migrate GUI colors test to original CSS color format 2023-07-01 13:18:28 +02:00
Guillaume Gomez 60c657f73a Improve search-result-display.goml test 2023-06-30 11:45:42 +02:00
Guillaume Gomez a716c79c29 Update GUI tests 2023-06-28 11:21:57 +02:00
Matthias Krüger d2f82a00d0
Rollup merge of #113023 - GuillaumeGomez:migrate-gui-test-color-17, r=notriddle
Migrate GUI colors test to original CSS color format

Follow-up of https://github.com/rust-lang/rust/pull/111459.

r? `@notriddle`
2023-06-25 13:48:37 +02:00
Guillaume Gomez 0979bf7413 Migrate GUI colors test to original CSS color format 2023-06-25 10:49:28 +02:00
Matthias Krüger 8816f9ee1e
Rollup merge of #112937 - camelid:align-typenames, r=notriddle,GuillaumeGomez
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-25 02:04:20 +02:00
Noah Lev 9b97ae1d8c rustdoc: Update GUI test 2023-06-24 14:30:35 -07:00
Guillaume Gomez fa1f16116e Migrate GUI colors test to original CSS color format 2023-06-24 14:47:16 +02:00
Matthias Krüger 9d7f297f3c
Rollup merge of #112962 - GuillaumeGomez:fix-rustdoc-gui-tester, r=ozkanonur
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-23 19:40:01 +02:00
Guillaume Gomez 3b17012ac9 Fix GUI test for popover 2023-06-23 19:34:37 +02:00
Guillaume Gomez d70faf3645 Fix failing rustdoc GUI test 2023-06-23 15:50:30 +02:00
Guillaume Gomez f5470af6a6
Rollup merge of #112894 - GuillaumeGomez:gui-fields-display, r=notriddle
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-21 20:00:51 +02:00
Guillaume Gomez 805edb0a4a Add test to prevent regression for fields display 2023-06-21 17:42:53 +02:00
Alexis (Poliorcetics) Bourget c3cdf8542d tests: add test for color of item kind 2023-06-20 08:28:56 +02:00
Matthias Krüger 63799ba549
Rollup merge of #112707 - GuillaumeGomez:back-in-history-fix, r=notriddle
[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-17 12:43:31 +02:00
Guillaume Gomez ea55d25465 Add regression test for #112676 2023-06-16 20:41:00 +02:00
bors 6a94e87a54 Auto merge of #110688 - GuillaumeGomez:result-search-type, r=notriddle,jsha
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-16 15:02:22 +00:00
Matthias Krüger 77b307ff20
Rollup merge of #112613 - GuillaumeGomez:fix-gui-test-windows, r=notriddle
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-14 18:10:32 +02:00
Guillaume Gomez fced6383c2 Fix `href` attribute value check on Windows (`DOC_PATH` lacks an extra `/`) 2023-06-14 16:23:05 +02:00
Guillaume Gomez d1a76a9f50 Update rustdoc-gui test 2023-06-14 14:22:17 +02:00
Guillaume Gomez df9a46f60f Replace unicode value with character in shortcuts.goml test 2023-06-14 10:37:56 +02:00
Guillaume Gomez 5894193996 Migrate GUI colors test to original CSS color format 2023-06-11 14:40:12 +02:00
Guillaume Gomez 08e0c12c07 Migrate GUI colors test to original CSS color format 2023-06-10 14:38:08 +02:00
Guillaume Gomez 3522baa8ba Migrate GUI colors test to original CSS color format 2023-06-07 17:42:04 +02:00
Guillaume Gomez d67e00eb26 Migrate GUI colors test to original CSS color format 2023-06-04 15:55:30 +02:00
Guillaume Gomez de85f7ff36 Move type name directly into the same DOM element 2023-06-03 16:37:43 +02:00