tree: f83dd05b52d5e2f334af2e1d117adcb86e7ff966 [path history] [tgz]
  1. src/
  2. anchor-navigable.goml
  3. anchors.goml
  4. basic-code.goml
  5. check-code-blocks-margin.goml
  6. check-stab-in-docblock.goml
  7. check_info_sign_position.goml
  8. code-blocks-overflow.goml
  9. code-color.goml
  10. code-sidebar-toggle.goml
  11. code-tags.goml
  12. codeblock-sub.goml
  13. codeblock-tooltip.goml
  14. copy-path.goml
  15. cursor.goml
  16. default-settings.goml
  17. docblock-big-code-mobile.goml
  18. docblock-code-block-line-number.goml
  19. docblock-details.goml
  20. docblock-table-overflow.goml
  21. docblock-table.goml
  22. duplicate-macro-reexport.goml
  23. enum-variants.goml
  24. escape-key.goml
  25. extend-css.goml
  26. fields.goml
  27. font-weight.goml
  28. globals.goml
  29. go-to-collapsed-elem.goml
  30. hash-item-expansion.goml
  31. headers-color.goml
  32. headings-anchor.goml
  33. headings.goml
  34. hide-mobile-topbar.goml
  35. highlight-colors.goml
  36. huge-collection-of-constants.goml
  37. huge-logo.goml
  38. impl-default-expansion.goml
  39. impl-doc.goml
  40. impl_on_foreign_order.goml
  41. implementors.goml
  42. item-decl-colors.goml
  43. item-decl-comment-highlighting.goml
  44. item-info-alignment.goml
  45. item-info-overflow.goml
  46. item-info.goml
  47. item-summary-table.goml
  48. javascript-disabled.goml
  49. jump-to-def-background.goml
  50. label-next-to-symbol.goml
  51. links-color.goml
  52. list_code_block.goml
  53. method-margins.goml
  54. mobile-crate-name.goml
  55. mobile.goml
  56. module-items-font.goml
  57. no-docblock.goml
  58. notable-trait.goml
  59. overflow-tooltip-information.goml
  60. pocket-menu.goml
  61. README.md
  62. run-on-hover.goml
  63. rust-logo.goml
  64. scrape-examples-button-focus.goml
  65. scrape-examples-color.goml
  66. scrape-examples-fonts.goml
  67. scrape-examples-layout.goml
  68. scrape-examples-toggle.goml
  69. search-corrections.goml
  70. search-error.goml
  71. search-filter.goml
  72. search-form-elements.goml
  73. search-input-mobile.goml
  74. search-keyboard.goml
  75. search-no-result.goml
  76. search-reexport.goml
  77. search-result-color.goml
  78. search-result-description.goml
  79. search-result-display.goml
  80. search-result-go-to-first.goml
  81. search-result-impl-disambiguation.goml
  82. search-result-keyword.goml
  83. search-tab-change-title-fn-sig.goml
  84. search-tab.goml
  85. setting-auto-hide-content-large-items.goml
  86. setting-auto-hide-item-methods-docs.goml
  87. setting-auto-hide-trait-implementations.goml
  88. setting-go-to-only-result.goml
  89. settings-button.goml
  90. settings.goml
  91. shortcuts.goml
  92. sidebar-links-color.goml
  93. sidebar-macro-reexport.goml
  94. sidebar-mobile-scroll.goml
  95. sidebar-mobile.goml
  96. sidebar-resize-close-popover.goml
  97. sidebar-resize-setting.goml
  98. sidebar-resize-window.goml
  99. sidebar-resize.goml
  100. sidebar-source-code-display.goml
  101. sidebar-source-code.goml
  102. sidebar.goml
  103. source-anchor-scroll.goml
  104. source-code-page-code-scroll.goml
  105. source-code-page.goml
  106. src-font-size.goml
  107. stab-badge.goml
  108. struct-fields.goml
  109. target.goml
  110. theme-change.goml
  111. theme-defaults.goml
  112. theme-in-history.goml
  113. toggle-click-deadspace.goml
  114. toggle-docs-mobile.goml
  115. toggle-docs.goml
  116. toggle-implementors.goml
  117. toggled-open-implementations.goml
  118. tooltip-over-sidebar.goml
  119. trait-sidebar-item-order.goml
  120. type-declation-overflow.goml
  121. type-impls.goml
  122. unsafe-fn.goml
  123. utils.goml
  124. warning-block.goml
  125. where-whitespace.goml
tests/rustdoc-gui/README.md

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