mdbook/tests/gui
Eric Huss 426e7bee17 Fix loading of mode-rust.js
The reason the ACE editor was failing to load the rust syntax
highlighting is because the syntax highlighting was being created
*after* the editor was created. If the editor is created first, then ACE
tries to load `ace/mode/rust`. Since it isn't already defined, it tried
to compute the URL and load it manually. However, since the URLs now
have a hash in it (via https://github.com/rust-lang/mdBook/pull/1368),
it was unable to load.

The solution here is to make sure `ace/mode/rust` is defined before
creating the editors. Then ACE knows that it can just load the module
directly instead of trying to fetch it from the server.

Fixes https://github.com/rust-lang/mdBook/issues/2700
2025-05-23 07:19:27 -07:00
..
help.goml Add help gui test 2025-05-15 05:25:48 -07:00
move-between-pages.goml Fix loading of mode-rust.js 2025-05-23 07:19:27 -07:00
runner.rs Use serde_json instead of json to get browser-ui-test version 2025-03-23 10:06:12 +01:00
search.goml Remove fail-on-request-error in GUI tests as they are not needed anymore 2025-03-22 17:56:22 +01:00
sidebar-active.goml Break off query string when comparing url for sidebar 2025-04-21 12:03:17 -07:00
sidebar-nojs.goml Remove fail-on-request-error in GUI tests as they are not needed anymore 2025-03-22 17:56:22 +01:00
sidebar.goml Remove fail-on-request-error in GUI tests as they are not needed anymore 2025-03-22 17:56:22 +01:00