| Index: third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1e3584b8f6872221c1873518a3566c18bb8f40fa
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-load-regular-script-after-failed-integrity.html
|
| @@ -0,0 +1,32 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <!-- Regression test for https://crbug.com/570340 -->
|
| + <title>Script loaded after failed integrity check should still load</title>
|
| + </head>
|
| + <body>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script>
|
| + var should_fail_test = async_test('should fail');
|
| + var should_succeed_test = async_test('should succeed');
|
| +
|
| + function should_fail(loaded) {
|
| + should_fail_test.step(function() {
|
| + if (loaded)
|
| + assert_unreached();
|
| + else
|
| + this.done();
|
| + });
|
| + }
|
| +
|
| + function success() {
|
| + should_succeed_test.step(function() {
|
| + this.done();
|
| + });
|
| + }
|
| + </script>
|
| + <script onerror="should_fail(false);" onload="should_fail(true);" src="resources/simple-result.js" integrity="sha256-deadbeef"></script>
|
| + <script onerror="assert_unreached();" src="call-success.js"></script>
|
| + </body>
|
| +</html>
|
|
|