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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/image-map1.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/accessibility/image-map1.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/image-map1.html b/third_party/WebKit/LayoutTests/accessibility/image-map1.html
index 8159bbd25f87696d752915e59b76fcf1614b2d6a..b19498b5aba48733bd3cb527d935e709b40b72d5 100644
--- a/third_party/WebKit/LayoutTests/accessibility/image-map1.html
+++ b/third_party/WebKit/LayoutTests/accessibility/image-map1.html
@@ -7,7 +7,7 @@
testRunner.dumpAsText();
</script>
<body id="body">
-
+
<!-- Test image map -->
<map id="apple" name="imagemap1">
<area shape="rect" coords="10,10,133,72" href="http://www.apple.com" title="Link1" />
@@ -20,7 +20,7 @@
<p id="description"></p>
<div id="console"></div>
-
+
<script>
description("This tests that you can reach the links within an image map.");
@@ -28,14 +28,14 @@
document.getElementById("body").focus();
var body = accessibilityController.focusedElement;
- shouldBe("body.childAtIndex(3).role", "'AXRole: AXLink'");
- shouldBe("body.childAtIndex(3).deprecatedTitle", "'AXTitle: Link1'");
+ shouldBe("body.childAtIndex(0).role", "'AXRole: AXLink'");
+ shouldBe("body.childAtIndex(0).name", "'Link1'");
- shouldBe("body.childAtIndex(4).role", "'AXRole: AXLink'");
- shouldBe("body.childAtIndex(4).deprecatedTitle", "'AXTitle: Link2'");
+ shouldBe("body.childAtIndex(1).role", "'AXRole: AXLink'");
+ shouldBe("body.childAtIndex(1).name", "'Link2'");
- shouldBe("body.childAtIndex(5).role", "'AXRole: AXLink'");
- shouldBe("body.childAtIndex(5).deprecatedTitle", "'AXTitle: Link3'");
+ shouldBe("body.childAtIndex(2).role", "'AXRole: AXLink'");
+ shouldBe("body.childAtIndex(2).name", "'Link3'");
}
</script>

Powered by Google App Engine
This is Rietveld 408576698