Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-imagemap-simple.html
blobc2a251c36f363449b4d98616b9f7fc8864ccafe6
1 <html>
2 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/spatial-navigation-utils.js"></script>
6 <script type="application/javascript">
8 var resultMap = [
9 ["Down", "1"],
10 ["Down", "3"],
11 ["Down", "5"],
12 ["Up", "3"],
13 ["Right", "4"],
14 ["Right", "6"],
15 ["Left", "4"],
16 ["Up", "2"],
17 ["Left", "1"],
18 ["Up", "start"],
19 ["DONE", "DONE"]
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
25 window.internals.settings.setSpatialNavigationEnabled(true);
26 testRunner.waitUntilDone();
29 function runTest()
31 // starting the test itself: get to a known place.
32 document.getElementById("start").focus();
34 initTest(resultMap, testCompleted);
37 function testCompleted()
39 if (window.testRunner)
40 testRunner.notifyDone();
43 window.onload = runTest;
45 </script>
46 </head>
48 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
49 <map name="map" title="map" id="firstmap">
50 <area shape="rect" coords="20,20,70,70" href="#" id="1">
51 <area shape="rect" coords="130,20,180,70" href="#" id="2">
52 <area shape="rect" coords="20,130,70,180" href="#" id="3">
53 <area shape="rect" coords="130,130,180,180" href="#" id="4">
54 </map>
56 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px></a>
57 <div>
58 <img src="resources/green.png" width=200px height=200px usemap="#map"><a id="6" href="a"><img src="resources/green.png" width=50px height=50px></a>
59 </div>
60 <a id="5" href="a"><img src="resources/green.png" width=50px height=50px></a>
61 <div id="console"></div>
62 <div>This test tests that areas of an imagemap can be reached with spatial navigation.</div>
63 </body>
64 </html>