summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/accessibility/axobjectcache-leaks-node.html
blob: 9c82e2697e6de22bbede76a5bb4ceaaab2d38bbf (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
<!DOCTYPE html>
<html>
<body>
    <script id='targetHTML' type='text/html'>
        <select id="menu">
            <option>abcd</option>
            <option>efgh</option>
        </select>
    </script>
    <script id='targetJS' type='text/html'>
        document.getElementById('menu').focus();
        eventSender.keyDown('e');
    </script>

    <script src="../fast/js/resources/js-test-pre.js"></script>
    <script src="../fast/js/resources/leak-check.js"></script>
    <script>
        var target = grabScriptText('targetHTML')+
                     '<script>'+grabScriptText('targetJS')+'<'+'/script>';
        var tolerance = {'numberOfLiveDocuments': 0};

        doLeakTest(htmlToUrl(target), tolerance);
    </script>
</body>
</html>