REGRESSION (r53857): Crash when tabbing to <map>
[WebKit.git] / LayoutTests / fast / events / imagemap-norender-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script>
6 var successfullyParsed = false;
7 </script>
8 <script src="../js/resources/js-test-pre.js"></script>
9 <body id="body">
10
11 <h1 id="header" tabindex=0>start element</h1>
12 <div><img src="resources/abe.png" alt="test" style="width:679px; height:112px" usemap="#Map"></div>
13 <div style="display:none"><map name="Map" id="Map"><area shape="rect" coords=coords="5,48,247,97" href="http://www.webkit.org/" target="_blank" id="area1"/></map></div>
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19
20     description("This tests tabbing to an image map link where the map might not have a renderer won't crash.");
21
22     // start at the right place
23     document.getElementById("header").focus();
24
25     // tab forward
26     eventSender.keyDown('\t');
27     shouldBe("document.activeElement.id", "'area1'");
28
29     successfullyParsed = true;
30 </script>
31
32 <script src="../js/resources/js-test-post.js"></script>
33 </body>
34 </html>