Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-imagemap-leak-document.html
blob96249024bea2885c974882a8438e4b5609fe0d45
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script id='targetHTML' type='text/html'>
5 <map name="map" title="map" id="firstmap">
6 <area shape="rect" coords="20,20,70,70" href="#" id="1">
7 </map>
9 <a id="start" href="a"></a>
10 <img width=200px height=200px usemap="#map">
11 </script>
13 <script id='targetJS' type='text/html'>
14 document.getElementById('start').focus();
15 eventSender.keyDown('downArrow');
16 </script>
18 <script src="../../resources/js-test.js"></script>
19 <script src="../../resources/leak-check.js"></script>
20 <script>
21 testRunner.overridePreference('WebKitTabToLinksPreferenceKey', 1);
22 window.internals.settings.setSpatialNavigationEnabled(true);
24 var target = grabScriptText('targetHTML')+
25 '<script>'+grabScriptText('targetJS')+'<'+'/script>';
26 var tolerance = {'numberOfLiveDocuments': 0};
28 doLeakTest(htmlToUrl(target), tolerance);
29 </script>
30 </body>
31 </html>