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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/secure-textfield-title-ui.html

Issue 1435113003: Make use of new AX name calc in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue with ariaTextAlternative 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/secure-textfield-title-ui.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/secure-textfield-title-ui.html b/third_party/WebKit/LayoutTests/accessibility/secure-textfield-title-ui.html
index 38514b1dac575c55b26cebe5b107ec7751dd8a90..c9d334a22df3d3c9cbb4028f09ec0ddddf989dcc 100644
--- a/third_party/WebKit/LayoutTests/accessibility/secure-textfield-title-ui.html
+++ b/third_party/WebKit/LayoutTests/accessibility/secure-textfield-title-ui.html
@@ -4,15 +4,15 @@
testRunner.dumpAsText();
</script>
<body id="body">
-
+
<!-- This test makes sure that a secure text field has the correct title ui element -->
<label for="accountpassword"><span class="dslabel">Password</span></label><br>
<input size="30" maxlength="32" id="accountpassword" type="password" name="theAccountPW">
-
+
<div id="result"></div>
-
+
<script>
if (window.accessibilityController) {
var result = document.getElementById("result");
@@ -21,11 +21,11 @@
pass.focus();
var titleUIElement = accessibilityController.focusedElement.nameElementAtIndex(0);
var titleText = titleUIElement.childAtIndex(0);
- if (titleText.stringValue == "AXValue: Password") {
+ if (titleText.name == "Password") {
result.innerText += "Test passed\n";
}
else {
- result.innerText += "Test failed\n";
+ result.innerText += "Test failed\n";
}
}
</script>

Powered by Google App Engine
This is Rietveld 408576698