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