| <!DOCTYPE html> |
| <html> |
| <body onload="runTest()"> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| function runTest() { |
| var script = document.createElement('script'); |
| script.onload = function() { testRunner.notifyDone(); }; |
| script.onerror = function() { testRunner.notifyDone(); }; |
| script.setAttribute('integrity', "sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE="); |
| script.src = "resources/clear-integrity-attribute.js"; |
| document.body.appendChild(script); |
| } |
| </script> |
| <p> |
| This test passes if only one 'FAIL' alert appears. |
| </p> |
| <iframe src="http://127.0.0.1:8000/security/subresourceIntegrity/resources/clear-integrity-attribute.html"></iframe> |
| </body> |
| </html> |