6 <script src=
"../../../resources/js-test.js"></script>
9 <p id=
"description"></p>
10 <div id=
"console"></div>
11 <iframe id=
"frame" src='data:text/html,
<input type=
"range"></input>'
></iframe>
13 description("Make sure we don't ASSERT when an input element with a built-in touch handler is deleted after previously being removed from the document - crbug.com/285299.");
15 window
.jsTestIsAsync
= true;
18 document
.getElementById('frame').addEventListener('load', function() {
19 // Verify we actually have a hit rect on the page.
20 if (window
.internals
) {
21 rects
= window
.internals
.touchEventTargetLayerRects(document
);
22 shouldBe("rects.length", "1");
25 document
.getElementById("frame").remove();
26 if (window
.internals
) {
27 rects
= window
.internals
.touchEventTargetLayerRects(document
);
28 shouldBe("rects.length", "0");
30 window
.setTimeout(function() {