1 // Ensures that the theme change is working as expected.
2 goto: file://|DOC_PATH|/test_docs/index.html
4 click: "#theme-choices > button:first-child"
6 // should be the ayu theme so let's check the color
7 assert-css: ("body", { "background-color": "rgb(15, 20, 25)" })
8 click: "#theme-choices > button:last-child"
10 // should be the light theme so let's check the color
11 assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
13 goto: file://|DOC_PATH|/settings.html
16 assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
17 assert-local-storage: { "rustdoc-theme": "light" }
21 assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
22 assert-local-storage: { "rustdoc-theme": "dark" }
26 assert-css: ("body", { "background-color": "rgb(15, 20, 25)" })
27 assert-local-storage: { "rustdoc-theme": "ayu" }