//! Tests for print page. use crate::prelude::*; // Tests relative links from the print page. #[test] fn relative_links() { BookTest::from_dir("print/relative_links") .check_main_file("book/print.html", str![[r##"

First Chapter

First Nested

Testing relative links for the print page

When we link to the first section, it should work on both the print page and the non-print page.

A fragment link should work.

Link outside.

Some image

HTML Link

raw html

Some section

"##]]); } // Checks that print.html is noindex. #[test] fn noindex() { let robots = r#""#; BookTest::from_dir("print/noindex") .check_file_contains("book/print.html", robots) .check_file_doesnt_contain("book/index.html", robots); }