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