| Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-basic-blocked.html
|
| diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-basic-blocked.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-basic-blocked.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..48667866cfbd796dcac1b308cabfc81920385875
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scripthash-basic-blocked.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <meta http-equiv="Content-Security-Policy" content="script-src 'sha1-Au4uYFbkf7OYd+ACMnKq96FN3qo='">
|
| + <script>
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| + alert('PASS (1/1)');
|
| + </script>
|
| + <script>
|
| + alert('FAIL (1/4)');
|
| + </script>
|
| + <script>alert('FAIL (2/4)');
|
| + </script>
|
| + <script>alert('FAIL (3/4)');</script>
|
| +<script>alert('FAIL (4/4)');</script>
|
| + </head>
|
| + <body>
|
| + <p>
|
| + This tests the effect of a valid script-hash value, with one valid
|
| + script and several invalid ones. It passes if one alert is executed
|
| + and four console warings are visible.
|
| + </p>
|
| + </body>
|
| +</html>
|
|
|