Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity.html

Issue 566083003: Implementation of subresource integrity attribute for secure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed broken build Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity.html
new file mode 100644
index 0000000000000000000000000000000000000000..b29411d0f4eb8d84035fbf8727c9ca292bb2afc9
--- /dev/null
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-invalid-integrity.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <body>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ </script>
+ <p>
+ This test passes if no 'FAIL' alert appears.
+ </p>
+ <script src='fail.js' integrity="yM5ZyzNsyKfaXRY78zSGapeQKtl0oGdpPpYxgwl8XW8="></script>
+ <script src='fail.js' integrity="ni://#yM5ZyzNsyKfaXRY78zSGapeQKtl0oGdpPpYxgwl8XW8="></script>
+ <script src='fail.js' integrity="yM5ZyzNsyKfaXRY78zSGapeQKtl0oGdpPpYxgwl8XW8="></script>
+ <script src='fail.js' integrity="ni://sha1;Ywd5te2RvxmuHLzLzZjYo1/0LMw="></script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698