| Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity-console-messages.html
|
| diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity-console-messages.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity-console-messages.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..325457366e665420a1dcfef1d3320a2b6ec8d519
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity-console-messages.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <title>SRI invalid integrity attributes</title>
|
| + </head>
|
| + <body>
|
| + <script>
|
| + if (window.testRunner)
|
| + window.testRunner.dumpAsText();
|
| +
|
| + var count = 0;
|
| + function checkDone() {
|
| + if (count == 2)
|
| + done();
|
| + count++;
|
| + }
|
| + function success() {
|
| + alert('PASS');
|
| + }
|
| + function scriptError() {
|
| + alert('FAIL');
|
| + }
|
| + </script>
|
| + <script src='call-success.js' onerror="scriptError();" integrity="sha256;B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg="></script>
|
| + <script src='call-success.js' onerror="scriptError();" integrity="sha256:B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg="></script>
|
| + <script src='call-success.js' onerror="scriptError();" integrity="sha256-(B0_62fJSJFrdjEFR9ba04m_D-LHQ-zG6PGcaR0Trpxg=)"></script>
|
| + </body>
|
| +</html>
|
|
|