summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/support/inject-image.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/content-security-policy/support/inject-image.js')
-rw-r--r--testing/web-platform/tests/content-security-policy/support/inject-image.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/content-security-policy/support/inject-image.js b/testing/web-platform/tests/content-security-policy/support/inject-image.js
new file mode 100644
index 0000000000..a10d50a983
--- /dev/null
+++ b/testing/web-platform/tests/content-security-policy/support/inject-image.js
@@ -0,0 +1,4 @@
+// This script block will trigger a violation report.
+var i = document.createElement('img');
+i.src = '/content-security-policy/support/fail.png';
+document.body.appendChild(i);