From 8883bd6acae7f0058c1f1024653a995cafaeb964 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Mon, 6 Jul 2020 16:15:57 -0400 Subject: [PATCH] add more black box test data --- .../data/import-css-via-data-url/index.html | 23 +++++++++++++++++++ .../data/import-css-via-data-url/style.css | 4 ++++ src/tests/data/integrity/index.html | 10 ++++---- 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 src/tests/data/import-css-via-data-url/index.html create mode 100644 src/tests/data/import-css-via-data-url/style.css diff --git a/src/tests/data/import-css-via-data-url/index.html b/src/tests/data/import-css-via-data-url/index.html new file mode 100644 index 0000000..1758b00 --- /dev/null +++ b/src/tests/data/import-css-via-data-url/index.html @@ -0,0 +1,23 @@ + + + + + + + Attempt to import CSS via data URL asset + + + + + +

If you see pink background with white foreground then we’re in trouble

+ + + diff --git a/src/tests/data/import-css-via-data-url/style.css b/src/tests/data/import-css-via-data-url/style.css new file mode 100644 index 0000000..8a12fec --- /dev/null +++ b/src/tests/data/import-css-via-data-url/style.css @@ -0,0 +1,4 @@ +body { + background-color: pink; + color: white; +} diff --git a/src/tests/data/integrity/index.html b/src/tests/data/integrity/index.html index 1b373ab..080bc6c 100644 --- a/src/tests/data/integrity/index.html +++ b/src/tests/data/integrity/index.html @@ -4,14 +4,16 @@ + Local HTML file - - + + - - +

This page should have black background and white foreground, but only when served via http: (not via file:)

+ +