| OLD | NEW |
| (Empty) |
| 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> | |
| 8 | |
| 9 <a id="start" href="a"></a> | |
| 10 <img width=200px height=200px usemap="#map"> | |
| 11 </script> | |
| 12 | |
| 13 <script id='targetJS' type='text/html'> | |
| 14 document.getElementById('start').focus(); | |
| 15 eventSender.keyDown('downArrow'); | |
| 16 </script> | |
| 17 | |
| 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); | |
| 23 | |
| 24 var target = grabScriptText('targetHTML')+ | |
| 25 '<script>'+grabScriptText('targetJS')+'<'+'/script>'; | |
| 26 var tolerance = {'numberOfLiveDocuments': 0}; | |
| 27 | |
| 28 doLeakTest(htmlToUrl(target), tolerance); | |
| 29 </script> | |
| 30 </body> | |
| 31 </html> | |
| 32 | |
| OLD | NEW |