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

Side by Side Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html

Issue 954233003: Enable SRI only for same origin and CORS content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on ToT Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 </head>
4 <body>
5 <script src="/js-test-resources/js-test.js"></script>
6 <script>
7 var result = false;
8 var scriptLoaded = function() {
9 if (result)
10 testPassed('Script ran.');
11 else
12 testFailed('Script did not run.');
13 finishJSTest();
14 };
15
16 window.jsTestIsAsync = true;
17 description("The test passes if the script loads without any console err or messages.");
Mike West 2015/03/06 03:17:09 Instead of this style, would you mind rewriting th
jww 2015/03/06 08:24:21 That works in this case, but in the other tests we
Mike West 2015/03/06 09:07:52 If you want to test the error message, then yes, y
jww 2015/03/09 22:07:45 Yeah, I was hoping there was some test-mode-only A
18 </script>
19 <script crossorigin="anonymous" integrity="ni:///sha256;eQJgT9bQ7qIxOoZ_I0Oh tpn3EDFGHP2hqHAWogCoOtU=" src="http://localhost:8000/security/resources/cors-scr ipt.php?value=true" onload="scriptLoaded();"></script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698