Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/fail-to-inject-script.js |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/fail-to-inject-script.js b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/fail-to-inject-script.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f896d1d84fa7c221cfd931b2d5606e7d6362259 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/fail-to-inject-script.js |
@@ -0,0 +1,9 @@ |
+var s = document.createElement('script'); |
+s.onerror = function() { |
+ done(); |
+}; |
+s.onload = function() { |
+ assert_unreached('Script loaded.'); |
+}; |
+document.body.appendChild(s); |
+s.innerText = 'assert_unreached("Script should not run.");' |