Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html |
similarity index 56% |
copy from LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html |
copy to LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html |
index 814501b81669f3e70afd5a8dde044ee3f27e6b98..10fedea8f4d596130c9f0f394d2eb7b32576402f 100644 |
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/duplicate-directive.html |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed.html |
@@ -1,19 +1,16 @@ |
<!DOCTYPE html> |
<html> |
<head> |
- <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'; script-src 'none'"> |
- <script> |
- if (window.testRunner) { |
- testRunner.dumpAsText(); |
- } |
- </script> |
+ <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-Au4uYFbkf7OYd+ACMnKq96FN3qo='"> |
<script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
alert('PASS (1/1)'); |
</script> |
</head> |
<body> |
<p> |
- This tests the effect of duplicated directives. It passes if a |
+ This tests the effect of a valid script-hash value. It passes if no |
console warning is visible, and the alert() is executed. |
</p> |
</body> |