Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLLinkElement / link-preload-settings-no-crash.html
blobe7593f8b8d3f54c118173839f749012787890017
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <link id="lnk" rel="preload" as="image" href="http://prefetch.wut.com.test/3.gif">
8 <script>
9 description("Inserting a <link rel=preload> into a bare document shouldn't crash.");
11 window.jsTestIsAsync = true;
13 function runTest() {
14 var doc = document.implementation.createDocument("", "", null);
15 doc.appendChild(document.getElementById("lnk"));
16 testPassed("no crash");
17 finishJSTest();
20 window.onload = runTest;
21 </script>
22 </body>
23 </html>