Skip to content
  • mario.prada@samsung.com's avatar
    [ATK] [WK2] platform/gtk/accessibility/roles-exposed.html is failing · e6f6a133
    mario.prada@samsung.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125854
    
    Reviewed by Chris Fleizach.
    
    Tools:
    
    Ensure we don't ever create instances of AccessibilityUIElement
    wrapping invalid platform-specific accessibility objects in DRT,
    both for consistency with what WKTR does (so we avoid situations
    where some tests fail in WK2 and not in WK1) and also to avoid
    overlooking tests that might not be checking the right thing.
    
    * DumpRenderTree/AccessibilityUIElement.cpp:
    (AccessibilityUIElement::makeJSAccessibilityUIElement): Return a
    nullPtr if the platformUIElement() is not a valid one.
    * DumpRenderTree/AccessibilityUIElement.h:
    (AccessibilityUIElement::platformUIElement): Added const modifier.
    
    LayoutTests:
    
    Updated tests and expectations to keep them passing after the
    change done in DRT, without changing their actual purpose.
    
    * platform/gtk/accessibility/roles-exposed.html: Make sure we
    print "AXRole: (no element)" when accessibilityElementByID() does
    not ret...
    e6f6a133