| Index: LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash.html
|
| diff --git a/LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash.html b/LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e7593f8b8d3f54c118173839f749012787890017
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLLinkElement/link-preload-settings-no-crash.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<link id="lnk" rel="preload" as="image" href="http://prefetch.wut.com.test/3.gif">
|
| +<script>
|
| +description("Inserting a <link rel=preload> into a bare document shouldn't crash.");
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +function runTest() {
|
| + var doc = document.implementation.createDocument("", "", null);
|
| + doc.appendChild(document.getElementById("lnk"));
|
| + testPassed("no crash");
|
| + finishJSTest();
|
| +}
|
| +
|
| +window.onload = runTest;
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|