[GTK] accessibility/secure-textfield-title-ui.html is failing
[WebKit-https.git] / LayoutTests / accessibility / secure-textfield-title-ui.html
index 12f81e338dca8b5f14f01b88268cdf6b29ff215b..05991c5db0477c34f16f999cb445b503c2cf4aa7 100644 (file)
@@ -20,7 +20,8 @@
             var pass = document.getElementById("accountpassword");
             pass.focus();
             var titleUIElement = accessibilityController.focusedElement.titleUIElement();
-            var titleText = titleUIElement.childAtIndex(0);
+            // On the Mac, element text is exposed in StaticText children; in ATK, in the element itself.
+            var titleText = titleUIElement.childrenCount ? titleUIElement.childAtIndex(0) : titleUIElement;
             if (titleText.stringValue == "AXValue: Password") {
                 result.innerText += "Test passed\n";
             }