From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- tests/rustdoc-gui/scrape-examples-fonts.goml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/rustdoc-gui/scrape-examples-fonts.goml (limited to 'tests/rustdoc-gui/scrape-examples-fonts.goml') diff --git a/tests/rustdoc-gui/scrape-examples-fonts.goml b/tests/rustdoc-gui/scrape-examples-fonts.goml new file mode 100644 index 00000000000..142f337cb74 --- /dev/null +++ b/tests/rustdoc-gui/scrape-examples-fonts.goml @@ -0,0 +1,9 @@ +// This test ensures that the correct font is used in scraped examples. +goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test_many.html" + +store-value: (font, '"Fira Sans", Arial, NanumBarunGothic, sans-serif') + +wait-for-css: (".scraped-example-title", {"font-family": |font|}) +wait-for-css: (".more-examples-toggle summary", {"font-family": |font|}) +wait-for-css: (".more-examples-toggle .hide-more", {"font-family": |font|}) +wait-for-css: (".example-links a", {"font-family": |font|}) -- cgit 1.4.1-3-g733a5