Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <head> | |
| 3 <style>.id1 { background-color: red }</style> | |
| 4 <link rel="stylesheet" | |
| 5 integrity="ni:///sha256;deadbeef" | |
|
Mike West
2015/03/06 03:17:09
Ditto the script comments.
jww
2015/03/06 08:24:21
See reply to your scripts comments.
| |
| 6 href="http://localhost:8000/security/resources/cors-style.php?credenti als=true&cors=false"></link> | |
| 7 </head> | |
| 8 <body> | |
| 9 <script src="/js-test-resources/js-test.js"></script> | |
| 10 <script> | |
| 11 window.jsTestIsAsync = true; | |
| 12 description("The test passes if the style fails to load 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."); | |
| 13 | |
| 14 window.onload = function () { | |
| 15 var ele = document.getElementById('id1'); | |
| 16 window.divBackground = window.getComputedStyle(ele, null).getPropert yValue('background-color'); | |
| 17 shouldBeEqualToString("divBackground", "rgb(255, 0, 0)"); | |
| 18 finishJSTest(); | |
| 19 }; | |
| 20 </script> | |
| 21 <div id="id1" class="id1"></div> | |
| 22 </body> | |
| 23 </html> | |
| OLD | NEW |