diff --git a/tests/cli/data_url.rs b/tests/cli/data_url.rs index 9c65a53..9bdc3fc 100644 --- a/tests/cli/data_url.rs +++ b/tests/cli/data_url.rs @@ -30,7 +30,7 @@ mod passing { assert_eq!( String::from_utf8_lossy(&out.stdout), "\ - \ + \ Hello, World!\n" ); diff --git a/tests/cli/local_files.rs b/tests/cli/local_files.rs index f1fb39f..fbdc7e9 100644 --- a/tests/cli/local_files.rs +++ b/tests/cli/local_files.rs @@ -98,7 +98,7 @@ mod passing { format!( "\ \ - \n \ + \n \ \n \ Local HTML file\n \ \n \ diff --git a/tests/html/compose_csp.rs b/tests/html/compose_csp.rs index ae3e7a4..acd291c 100644 --- a/tests/html/compose_csp.rs +++ b/tests/html/compose_csp.rs @@ -16,7 +16,10 @@ mod passing { options.isolate = true; let csp_content = html::compose_csp(&options); - assert_eq!(csp_content, "default-src 'unsafe-inline' data:;"); + assert_eq!( + csp_content, + "default-src 'unsafe-eval' 'unsafe-inline' data:;" + ); } #[test] @@ -75,6 +78,6 @@ mod passing { options.no_images = true; let csp_content = html::compose_csp(&options); - assert_eq!(csp_content, "default-src 'unsafe-inline' data:; style-src 'none'; font-src 'none'; frame-src 'none'; child-src 'none'; script-src 'none'; img-src data:;"); + assert_eq!(csp_content, "default-src 'unsafe-eval' 'unsafe-inline' data:; style-src 'none'; font-src 'none'; frame-src 'none'; child-src 'none'; script-src 'none'; img-src data:;"); } } diff --git a/tests/html/serialize_document.rs b/tests/html/serialize_document.rs index 3cf648b..bea47e4 100644 --- a/tests/html/serialize_document.rs +++ b/tests/html/serialize_document.rs @@ -40,7 +40,7 @@ mod passing { )), "\ \ - \ + \ Isolated document\ \ \ @@ -135,7 +135,7 @@ mod passing { "\ \ \ - \ + \ no-frame no-css no-js no-image isolated document\ \ \