| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/link-load-utilities.js"></script> | 4 <script src="resources/link-load-utilities.js"></script> |
| 5 <script> | 5 <script> |
| 6 function passed() | 6 function passed() |
| 7 { | 7 { |
| 8 testPassed("Fired Error event."); | 8 testPassed("Fired Error event."); |
| 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test")
, "rgb(255, 255, 0)" /* yellow */); | 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test")
, "rgb(255, 255, 0)" /* yellow */); |
| 10 testFinished(); | 10 testFinished(); |
| 11 } | 11 } |
| 12 </script> | 12 </script> |
| 13 <link rel="stylesheet" href="resources/stylesheet-with-non-existent-import.css"
onload="testFailedAndNotifyDone('Fired Load event. Should have fired Error event
.')" onerror="passed()"> | |
| 14 </head> | 13 </head> |
| 15 <body> | 14 <body> |
| 16 <p>This tests that an Error event is fired at an HTML Link element when its styl
e sheet fails to load an @import'ed style sheet. This test PASSED if there are o
nly PASS messages below. Otherwise, it FAILED.</p> | 15 <p>This tests that an Error event is fired at an HTML Link element when its styl
e sheet fails to load an @import'ed style sheet. This test PASSED if there are o
nly PASS messages below. Otherwise, it FAILED.</p> |
| 17 <h1 id="test"><!-- Test element --></h1> | 16 <h1 id="test"><!-- Test element --></h1> |
| 18 <pre id="console"></pre> | 17 <pre id="console"></pre> |
| 18 <link rel="stylesheet" href="resources/stylesheet-with-non-existent-import.css"
onload="testFailedAndNotifyDone('Fired Load event. Should have fired Error event
.')" onerror="passed()"> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |