Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: LayoutTests/accessibility/image-map1.html

Issue 442563002: Fix getComputedStyle() for area element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix code style Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../resources/js-test.js"></script> 3 <script src="../resources/js-test.js"></script>
4 </head> 4 </head>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 </script> 8 </script>
9 <body id="body"> 9 <body id="body">
10 10
Inactive 2014/08/07 15:36:07 Unrelated change.
11 <!-- Test image map --> 11 <!-- Test image map -->
12 <map id="apple" name="imagemap1"> 12 <map id="apple" name="imagemap1">
13 <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" title ="Link1" /> 13 <area shape="rect" coords="10,10,133,72" href="http://www.apple.com" title ="Link1" />
14 <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" title ="Link2" /> 14 <area shape="rect" coords="12,74,134,88" href="http://www.apple.com" title ="Link2" />
15 <area shape="rect" coords="11,91,133,105" href="http://www.apple.com" titl e="Link3" /> 15 <area shape="rect" coords="11,91,133,105" href="http://www.apple.com" titl e="Link3" />
16 <area shape="default" nohref="nohref" alt="" /> 16 <area shape="default" nohref="nohref" alt="" />
17 </map> 17 </map>
18 18
19 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" v space="1"> 19 <img src="resources/cake.png" border="0" align="left" usemap="#imagemap1" v space="1">
20 20
21 <p id="description"></p> 21 <p id="description"></p>
22 <div id="console"></div> 22 <div id="console"></div>
23 23
Inactive 2014/08/07 15:36:07 ditto.
24 <script> 24 <script>
25 description("This tests that you can reach the links within an image map ."); 25 description("This tests that you can reach the links within an image map .");
26 26
27 if (window.accessibilityController) { 27 if (window.accessibilityController) {
28 document.getElementById("body").focus(); 28 document.getElementById("body").focus();
29 29
30 var body = accessibilityController.focusedElement; 30 var body = accessibilityController.focusedElement;
31 shouldBe("body.childAtIndex(0).role", "'AXRole: AXLink'"); 31 shouldBe("body.childAtIndex(3).role", "'AXRole: AXLink'");
32 shouldBe("body.childAtIndex(0).title", "'AXTitle: Link1'"); 32 shouldBe("body.childAtIndex(3).title", "'AXTitle: Link1'");
33 33
34 shouldBe("body.childAtIndex(1).role", "'AXRole: AXLink'"); 34 shouldBe("body.childAtIndex(4).role", "'AXRole: AXLink'");
35 shouldBe("body.childAtIndex(1).title", "'AXTitle: Link2'"); 35 shouldBe("body.childAtIndex(4).title", "'AXTitle: Link2'");
36 36
37 shouldBe("body.childAtIndex(2).role", "'AXRole: AXLink'"); 37 shouldBe("body.childAtIndex(5).role", "'AXRole: AXLink'");
38 shouldBe("body.childAtIndex(2).title", "'AXTitle: Link3'"); 38 shouldBe("body.childAtIndex(5).title", "'AXTitle: Link3'");
39 } 39 }
40 </script> 40 </script>
41 41
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/image-map1-expected.txt » ('j') | LayoutTests/fast/css/area-computedStyle.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698