Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 testFailed('Script ran.'); | |
| 11 else | |
| 12 testPassed('Script did not run.'); | |
| 13 finishJSTest(); | |
| 14 }; | |
| 15 | |
| 16 window.jsTestIsAsync = true; | |
| 17 description("The test passes if the script fails to run and there is als o a console error saying that the specified integrity attribute cannot be enforc ed because the resource is not CORS enabled."); | |
| 18 </script> | |
| 19 <script integrity="ni:///sha256;deadbeef" src="http://localhost:8000/securit y/resources/cors-script.php?credentials=true&cors=false&value=true" onload="scri ptLoaded();"></script> | |
|
Mike West
2015/03/06 03:17:09
You're conflating a few things here:
1. You've d
jww
2015/03/06 08:24:21
Yup, I added a bunch of tests. This is probably as
| |
| 20 </body> | |
| 21 </html> | |
| OLD | NEW |