| 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 checkResult() | 6 function checkResult() |
| 7 { | 7 { |
| 8 testPassed("Fired Load event."); | 8 testPassed("Fired Load event."); |
| 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test")
, "rgb(0, 0, 255)" /* blue */); | 9 shouldComputedColorOfElementBeEqualToRGBString(document.getElementById("test")
, "rgb(0, 0, 255)" /* blue */); |
| 10 testFinished(); | 10 testFinished(); |
| 11 } | 11 } |
| 12 </script> | 12 </script> |
| 13 <link rel="stylesheet" href="resources/stylesheet-with-import.css" onload="check
Result()" onerror="testFailed('Fired Error event. Should have fired Load event.'
)"> | |
| 14 </head> | 13 </head> |
| 15 <body> | 14 <body> |
| 16 <p>This tests that a Load event is fired at an HTML Link element once all @impor
t'ed stylesheets are loaded by a style sheet. This test PASSED if there are only
PASS messages below. Otherwise, it FAILED.</p> | 15 <p>This tests that a Load event is fired at an HTML Link element once all @impor
t'ed stylesheets are loaded by a style sheet. This test PASSED if there are only
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-import.css" onload="check
Result()" onerror="testFailed('Fired Error event. Should have fired Load event.'
)"> |
| 19 </body> | 19 </body> |
| 20 </html> | 20 </html> |
| OLD | NEW |