4 <script src=
"../HTMLLinkElement/resources/link-load-utilities.js"></script>
7 <p>This tests that a Load event is fired at a programmatically inserted HTML Style element once it loads its style sheet. This test PASSED if you see the word PASS below. Otherwise, it FAILED.
</p>
8 <pre id=
"console"></pre>
10 var style
= createStyleElementWithString("");
11 style
.onload = function () { testPassedAndNotifyDone('Fired Load event.') };
12 style
.onerror = function () { testFailedAndNotifyDone('Fired Error event. Should have fired Load event.') };
13 document
.head
.appendChild(style
);