tree: b91628f1f5d34ec4ead7a8ee070fccb1a6ee66ec [path history] [tgz]
  1. src/
  2. anchor-navigable.goml
  3. anchors.goml
  4. auto-hide-trait-implementations.goml
  5. basic-code.goml
  6. basic.goml
  7. check-code-blocks-margin.goml
  8. check_info_sign_position.goml
  9. code-blocks-overflow.goml
  10. code-color.goml
  11. code-sidebar-toggle.goml
  12. code-tags.goml
  13. default-settings.goml
  14. docblock-big-code-mobile.goml
  15. docblock-code-block-line-number.goml
  16. docblock-table-overflow.goml
  17. escape-key.goml
  18. font-weight.goml
  19. hash-item-expansion.goml
  20. headers-color.goml
  21. headings.goml
  22. huge-collection-of-constants.goml
  23. impl-default-expansion.goml
  24. implementors.goml
  25. item-info-width.goml
  26. item-summary-table.goml
  27. javascript-disabled.goml
  28. jump-to-def-background.goml
  29. label-next-to-symbol.goml
  30. list_code_block.goml
  31. module-items-font.goml
  32. overflow-tooltip-information.goml
  33. README.md
  34. search-filter.goml
  35. search-input-mobile.goml
  36. search-result-color.goml
  37. search-result-colors.goml
  38. search-result-description.goml
  39. search-result-display.goml
  40. search-result-go-to-first.goml
  41. search-result-keyword.goml
  42. search-tab-selection-if-current-is-empty.goml
  43. shortcuts.goml
  44. sidebar-macro-reexport.goml
  45. sidebar-mobile.goml
  46. sidebar.goml
  47. source-code-page.goml
  48. theme-change.goml
  49. toggle-click-deadspace.goml
  50. toggle-docs-mobile.goml
  51. toggle-docs.goml
  52. toggle-implementors.goml
  53. toggled-open-implementations.goml
  54. trait-sidebar-item-order.goml
  55. type-declation-overflow.goml
src/test/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 src/test/rustdoc-gui --stage 1 --jobs 8 --test-args --debug

There are three options supported:

  • --debug: allows to see puppeteer commands.
  • --no-headless: disable headless mode so you can see what's going on.
  • --show-text: by default, text isn't rendered because of issues with fonts, it enables it back.