Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00
Guillaume Gomez
4074aae052
Update GUI test
2022-11-13 21:23:12 +01:00
Michael Howell
269dad27f2
rustdoc: add test cases for checkbox toggles
2022-11-11 09:57:58 -07:00
Michael Howell
0f3ae6218e
rustdoc: use checkbox instead of switch for settings toggles
...
The switch is designed to give the application a "physical" feel, but
nothing else in here really followed through. They didn't support the
"flick" gesture that real iOS switches support, and the radio
buttons that were also used in Rustdoc Settings were a more "classic"
form element anyway.
Also, while "switches" are the exclusive toggle design on iOS (since
[Apple HIG] reserves checkboxes for Mac only), the [Google Material]
guidelines say that lists of switches are bad, and you should just use
check boxes.
[Apple HIG]: https://developer.apple.com/design/human-interface-guidelines/components/selection-and-input/toggles
[Google Material]: https://m3.material.io/components/checkbox/guidelines#6902f23d-ceba-4b19-ae3b-b78b9b01d185
2022-11-10 17:22:37 -07:00
Michael Howell
f6dd4708cf
rustdoc: improve appearance of source page navigation bar
...
This commit changes things so that the search bar is exactly centered between
the top of the page and the top of the source code content area.
2022-10-20 13:31:06 -07:00
Guillaume Gomez
11a40ec5ff
Add more GUI tests for settings page
2022-10-15 15:59:11 +02:00
Guillaume Gomez
8d19d53c60
Update rustdoc-gui test to new browser-ui-test version
2022-10-07 20:17:22 +02:00
Guillaume Gomez
1564305a9f
Add GUI test for settings in small device
2022-07-27 14:45:12 +02:00
Guillaume Gomez
b393e979dc
Fix flakyness of GUI tests
2022-07-16 13:53:43 +02:00
Michael Howell
ccea908c17
rustdoc: add assertion for missing popover div
2022-06-28 18:20:19 -07:00
Michael Howell
f5f42a8cba
rustdoc: make keyboard commands work when checkboxes are selected
2022-06-28 17:29:55 -07:00
Michael Howell
cb8a7388fa
rustdoc: fix keyboard shortcuts bug in settings menu
...
This commit fixes the keyboard shorts code to call localStorage every time a
key is pressed. This matters because you're supposed to be able to change a
setting and have it immediately take effect.
2022-06-28 17:29:37 -07:00
Dylan DPC
94b8036147
Rollup merge of #97089 - GuillaumeGomez:improve-settings-theme-display, r=jsha
...
Improve settings theme display
This is a follow-up of #96958 . In this PR, I changed how the theme radio buttons are displayed and improved their look as well.
It now looks like this:
![Screenshot from 2022-05-17 20-46-20](https://user-images.githubusercontent.com/3050060/168887703-a01e3bd5-9644-4012-ac11-2ae7bacd6be6.png )
![Screenshot from 2022-05-17 20-46-12](https://user-images.githubusercontent.com/3050060/168887707-132f8b2d-1163-462f-b7dd-f861121bdee7.png )
You can test it [here](https://rustdoc.crud.net/imperio/improve-settings-theme-display/doc/foo/index.html ).
r? `@jsha`
2022-05-31 07:57:32 +02:00
Guillaume Gomez
70db59ca35
Add GUI test for settings display
2022-05-30 12:12:43 +02:00
Guillaume Gomez
bfb16b9dd7
Add GUI test for javascript disabled display of settings page
2022-05-28 18:55:30 +02:00
Guillaume Gomez
fca1007ed3
Add GUI test for click on setting text
2022-05-24 15:40:50 +02:00
Guillaume Gomez
44e5b3bf3e
Update GUI tests
2022-05-14 17:21:52 +02:00
Guillaume Gomez
dd6bb09133
Ensure that the settings CSS is loaded on the settings page
2022-05-11 11:29:21 +02:00
Guillaume Gomez
2f074dee42
Extend settings test to ensure settings text is as expected
2022-04-30 13:12:42 +02:00
Guillaume Gomez
e7d7d75c81
Add GUI test for settings menu
2022-04-30 13:12:42 +02:00