OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <!-- Regression test for https://crbug.com/570340 --> |
| 5 <title>Script loaded after failed integrity check should still load</tit
le> |
| 6 </head> |
| 7 <body> |
| 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> |
| 10 <script> |
| 11 var should_fail_test = async_test('should fail'); |
| 12 var should_succeed_test = async_test('should succeed'); |
| 13 |
| 14 function should_fail(loaded) { |
| 15 should_fail_test.step(function() { |
| 16 if (loaded) |
| 17 assert_unreached(); |
| 18 else |
| 19 this.done(); |
| 20 }); |
| 21 } |
| 22 |
| 23 function success() { |
| 24 should_succeed_test.step(function() { |
| 25 this.done(); |
| 26 }); |
| 27 } |
| 28 </script> |
| 29 <script onerror="should_fail(false);" onload="should_fail(true);" src="r
esources/simple-result.js" integrity="sha256-deadbeef"></script> |
| 30 <script onerror="assert_unreached();" src="call-success.js"></script> |
| 31 </body> |
| 32 </html> |
OLD | NEW |