summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/stale-grid-layout.html
blob: 908e1ccb75487f12dbf3dc7be294d22f4ea3bd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<keygen>
<div style="display: grid;">The test checks that we don't add non-children of the grid into the grid representation<br>This test has passed if it didn't crash under ASAN.
    <embed type=something-not-js>
</div>
<style>
embed { position: absolute; }
.c1 { animation-delay: 45762s; }
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function crash() {
    var highlight = document.createElementNS("http://www.w3.org/1999/xhtml", "highlight");
    highlight.setAttribute("class", "c1");
    document.body.appendChild(highlight);

    for (i=0; i != 8; i++)
        eventSender.keyDown("\t");
    eventSender.keyDown("X");
}

if (!window.eventSender)
    alert("This test needs to be run under DumpRenderTree.");
else
    document.addEventListener("DOMContentLoaded", crash, false);
</script>