Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b9d061beb7e1c6434aba8ab5b06d04fd91d9f4b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<meta http-equiv="Content-Security-Policy" content="img-src 'none'; script-src 'unsafe-inline'"> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+</script> |
+</head> |
+<body> |
+This test passes if it doesn't alert FAIL and does alert PASS. |
+<img src="../resources/abe.png" onload="alert('FAIL')" onerror="alert('PASS')"> |
+</body> |
+</html> |