fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1 folder109 files

files

src/
README.md1.1 KiB
anchor-navigable.goml700 B
anchors.goml3.9 KiB
basic-code.goml232 B
check-code-blocks-margin.goml362 B
check-stab-in-docblock.goml1.2 KiB
check_info_sign_position.goml771 B
code-blocks-overflow.goml475 B
code-color.goml1.2 KiB
code-sidebar-toggle.goml290 B
code-tags.goml938 B
codeblock-sub.goml303 B
codeblock-tooltip.goml3.9 KiB
cursor.goml857 B
default-settings.goml384 B
docblock-big-code-mobile.goml798 B
docblock-code-block-line-number.goml2.1 KiB
docblock-details.goml1.5 KiB
docblock-table-overflow.goml1.2 KiB
docblock-table.goml1.8 KiB
duplicate-macro-reexport.goml560 B
enum-variants.goml413 B
escape-key.goml1.6 KiB
extend-css.goml253 B
fields.goml778 B
font-weight.goml1.9 KiB
go-to-collapsed-elem.goml2.1 KiB
hash-item-expansion.goml785 B
headers-color.goml2.2 KiB
headings.goml10.6 KiB
help-page.goml2.6 KiB
highlight-colors.goml2.7 KiB
huge-collection-of-constants.goml329 B
huge-logo.goml1.0 KiB
impl-default-expansion.goml210 B
impl-doc.goml438 B
implementors.goml2.1 KiB
item-decl-colors.goml2.5 KiB
item-info-alignment.goml504 B
item-info-overflow.goml1.2 KiB
item-info.goml1.3 KiB
item-summary-table.goml315 B
javascript-disabled.goml218 B
jump-to-def-background.goml803 B
label-next-to-symbol.goml2.2 KiB
links-color.goml2.9 KiB
list_code_block.goml188 B
method-margins.goml743 B
mobile.goml1.3 KiB
module-items-font.goml2.0 KiB
no-docblock.goml718 B
notable-trait.goml10.0 KiB
overflow-tooltip-information.goml417 B
pocket-menu.goml2.9 KiB
run-on-hover.goml1.8 KiB
rust-logo.goml2.0 KiB
scrape-examples-button-focus.goml1.4 KiB
scrape-examples-color.goml3.2 KiB
scrape-examples-fonts.goml490 B
scrape-examples-layout.goml1.6 KiB
scrape-examples-toggle.goml1.7 KiB
search-corrections.goml3.6 KiB
search-error.goml962 B
search-filter.goml2.9 KiB
search-form-elements.goml3.9 KiB
search-input-mobile.goml471 B
search-keyboard.goml1.1 KiB
search-no-result.goml1.1 KiB
search-reexport.goml1.6 KiB
search-result-color.goml10.9 KiB
search-result-description.goml301 B
search-result-display.goml4.3 KiB
search-result-go-to-first.goml1013 B
search-result-keyword.goml379 B
search-tab-change-title-fn-sig.goml3.4 KiB
search-tab.goml6.1 KiB
setting-auto-hide-content-large-items.goml1.6 KiB
setting-auto-hide-item-methods-docs.goml1.5 KiB
setting-auto-hide-trait-implementations.goml1.5 KiB
setting-go-to-only-result.goml2.6 KiB
settings.goml10.1 KiB
shortcuts.goml1.2 KiB
sidebar-links-color.goml5.7 KiB
sidebar-macro-reexport.goml314 B
sidebar-mobile-scroll.goml589 B
sidebar-mobile.goml3.1 KiB
sidebar-source-code-display.goml7.8 KiB
sidebar-source-code.goml2.8 KiB
sidebar.goml6.6 KiB
source-anchor-scroll.goml881 B
source-code-page-code-scroll.goml449 B
source-code-page.goml8.2 KiB
src-font-size.goml792 B
stab-badge.goml1.2 KiB
struct-fields.goml355 B
target.goml960 B
theme-change.goml3.9 KiB
theme-defaults.goml1007 B
theme-in-history.goml966 B
toggle-click-deadspace.goml726 B
toggle-docs-mobile.goml1.4 KiB
toggle-docs.goml2.9 KiB
toggle-implementors.goml220 B
toggled-open-implementations.goml323 B
trait-sidebar-item-order.goml744 B
type-declation-overflow.goml4.1 KiB
unsafe-fn.goml963 B
warning-block.goml1.2 KiB
where-whitespace.goml1.3 KiB

The tests present here are used to test the generated HTML from rustdoc. The goal is to prevent unsound/unexpected GUI changes.

This is using the browser-ui-test framework to do so. It works as follows:

It wraps puppeteer to send commands to a web browser in order to navigate and test what's being currently displayed in the web page.

You can find more information and its documentation in its repository.

If you need to have more information on the tests run, you can use --test-args:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --debug

If you don't want to run in headless mode (helpful to debug sometimes), you can use --no-headless:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-headless

To see the supported options, use --help.

Important to be noted: if the chromium instance crashes when you run it, you might need to use --no-sandbox to make it work:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-sandbox