Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html |
deleted file mode 100644 |
index c59fcad48abb53707f91d6dba44f439d5215d847..0000000000000000000000000000000000000000 |
--- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-blocked-mimetypes.html |
+++ /dev/null |
@@ -1,50 +0,0 @@ |
-<!DOCTYPE html> |
-<head> |
- <title>SRI with bad MIME types are blocked</title> |
- <script src="/resources/testharness.js"></script> |
- <script src="/resources/testharnessreport.js"></script> |
-</head> |
-<body> |
- <script> |
- var test = async_test("Test that scripts with bad MIME types don't load."); |
- var result = false; |
- var tests = [ |
- { |
- 'src': 'resources/setResultWithMIME.php?mime=application/javascript&value=true', |
- 'integrity': 'sha256-_CPhHgLf4bYjXZA6KVnegM7ECdy7A3f35ntfHeYy9zI=?ct=applicationjavascript' |
- }, |
- { |
- 'src': 'resources/setResultWithMIME.php?mime=application/javascript&value=true', |
- 'integrity': 'sha256-_CPhHgLf4bYjXZA6KVnegM7ECdy7A3f35ntfHeYy9zI=?ct=app/javascript' |
- } |
- ]; |
- function scriptLoad() { |
- test.step(function() { |
- assert_unreached(); |
- }); |
- } |
- function scriptError() { |
- test.step(function() { |
- assert_false(result); |
- nextTest(); |
- }); |
- } |
- function nextTest() { |
- var next = tests.shift(); |
- if (!next) { |
- test.done(); |
- return; |
- } |
- result = false; |
- var script = document.createElement('script'); |
- script.onload = scriptLoad; |
- script.onerror = scriptError; |
- script.src = next.src; |
- script.integrity = next.integrity; |
- document.body.appendChild(script); |
- } |
- window.onload = function() { |
- nextTest(); |
- }; |
- </script> |
-</body> |