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 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> | |
| OLD | NEW |