| Index: LayoutTests/fast/html/imports/import-onerror.html
|
| diff --git a/LayoutTests/fast/html/imports/import-onerror.html b/LayoutTests/fast/html/imports/import-onerror.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..76dd1b49898f814f090d21596786c78f6978f527
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/html/imports/import-onerror.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../js/resources/js-test-pre.js"></script>
|
| +<script>
|
| +testRunner.waitUntilDone();
|
| +
|
| +var givenLoadEventTargets = [];
|
| +function handleError(event)
|
| +{
|
| + givenLoadEventTargets.push(event.target.id);
|
| + if (givenLoadEventTargets.length == 3) {
|
| + shouldBe("['invalid', 'notFound', 'notFoundShared']", "givenLoadEventTargets.sort()");
|
| + testRunner.notifyDone();
|
| + }
|
| +}
|
| +</script>
|
| +<link id="notFound" rel="import" href="notfound.html" onerror="handleError(event)">
|
| +<link id="notFoundShared" rel="import" href="notfound.html" onerror="handleError(event)">
|
| +<link id="invalid" rel="import" href="" onerror="handleError(event)">
|
| +</head>
|
| +<body></body>
|
| +<script src="../../js/resources/js-test-post.js"></script>
|
| +</html>
|
|
|