Title: [291471] trunk
- Revision
- 291471
- Author
- [email protected]
- Date
- 2022-03-18 01:30:10 -0700 (Fri, 18 Mar 2022)
Log Message
[ATSPI] accessibility/dropdown-value.html is timing out since added in 248145@main
https://bugs.webkit.org/show_bug.cgi?id=237803
<rdar://problem/90193311>
Reviewed by Andres Gonzalez.
Tools:
The test expects the combo box to expose the selected element name as the string value.
* WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp:
(WTR::AccessibilityUIElement::stringValue): Handle combo boxes as special case and return the selected element
name.
LayoutTests:
* platform/gtk/TestExpectations: Unskip the test.
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (291470 => 291471)
--- trunk/LayoutTests/ChangeLog 2022-03-18 08:10:45 UTC (rev 291470)
+++ trunk/LayoutTests/ChangeLog 2022-03-18 08:30:10 UTC (rev 291471)
@@ -1,3 +1,13 @@
+2022-03-18 Carlos Garcia Campos <[email protected]>
+
+ [ATSPI] accessibility/dropdown-value.html is timing out since added in 248145@main
+ https://bugs.webkit.org/show_bug.cgi?id=237803
+ <rdar://problem/90193311>
+
+ Reviewed by Andres Gonzalez.
+
+ * platform/gtk/TestExpectations: Unskip the test.
+
2022-03-18 Antoine Quint <[email protected]>
REGRESSION(r291129-r291128): [WK1 EWS] 3 imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/* tests are a constant text failure
Modified: trunk/LayoutTests/platform/gtk/TestExpectations (291470 => 291471)
--- trunk/LayoutTests/platform/gtk/TestExpectations 2022-03-18 08:10:45 UTC (rev 291470)
+++ trunk/LayoutTests/platform/gtk/TestExpectations 2022-03-18 08:30:10 UTC (rev 291471)
@@ -133,7 +133,6 @@
webkit.org/b/223862 accessibility/gtk/text-for-range-table-cells.html [ Failure ]
webkit.org/b/223862 accessibility/gtk/text-for-range-with-link.html [ Failure ]
accessibility/model-element-attributes.html [ Skip ]
-accessibility/dropdown-value.html [ Skip ]
# Tests failing with ATSPI implementation.
webkit.org/b/235941 accessibility/gtk/text-at-offset-embedded-objects.html [ Failure ]
Modified: trunk/Tools/ChangeLog (291470 => 291471)
--- trunk/Tools/ChangeLog 2022-03-18 08:10:45 UTC (rev 291470)
+++ trunk/Tools/ChangeLog 2022-03-18 08:30:10 UTC (rev 291471)
@@ -1,3 +1,17 @@
+2022-03-18 Carlos Garcia Campos <[email protected]>
+
+ [ATSPI] accessibility/dropdown-value.html is timing out since added in 248145@main
+ https://bugs.webkit.org/show_bug.cgi?id=237803
+ <rdar://problem/90193311>
+
+ Reviewed by Andres Gonzalez.
+
+ The test expects the combo box to expose the selected element name as the string value.
+
+ * WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp:
+ (WTR::AccessibilityUIElement::stringValue): Handle combo boxes as special case and return the selected element
+ name.
+
2022-03-18 Youenn Fablet <[email protected]>
Keep service workers alive when they are inspected even though they should be terminated
Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp (291470 => 291471)
--- trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp 2022-03-18 08:10:45 UTC (rev 291470)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/atspi/AccessibilityUIElementAtspi.cpp 2022-03-18 08:30:10 UTC (rev 291471)
@@ -877,10 +877,18 @@
JSRetainPtr<JSStringRef> AccessibilityUIElement::stringValue()
{
+ m_element->updateBackingStore();
+ if (m_element->role() == WebCore::Atspi::Role::ComboBox) {
+ // Tests expect the combo box to expose the selected element name as the string value.
+ if (auto menu = childAtIndex(0)) {
+ if (auto* selectedChild = menu->m_element->selectedChild(0))
+ return OpaqueJSString::tryCreate(makeString("AXValue: ", String::fromUTF8(selectedChild->name()))).leakRef();
+ }
+ }
+
if (!m_element->interfaces().contains(WebCore::AccessibilityObjectAtspi::Interface::Text))
return JSStringCreateWithCharacters(nullptr, 0);
- m_element->updateBackingStore();
auto value = makeString("AXValue: ", m_element->text().replace("\n", "<\\n>").replace(objectReplacementCharacter, "<obj>"));
return OpaqueJSString::tryCreate(value).leakRef();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes