Changeset 229344 in webkit
- Timestamp:
- Mar 6, 2018 2:49:27 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r229341 r229344 1 2018-03-06 Nan Wang <n_wang@apple.com> 2 3 AX: Flaky test after r229310 4 https://bugs.webkit.org/show_bug.cgi?id=183376 5 <rdar://problem/38188685> 6 7 Reviewed by Chris Fleizach. 8 9 * accessibility/mac/AOM-events-all-expected.txt: 10 * accessibility/mac/AOM-events-all.html: 11 1 12 2018-03-06 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/accessibility/mac/AOM-events-all-expected.txt
r229310 r229344 1 button 1 button 2 option 1 3 2 4 This tests all accessibility events. 3 5 -
trunk/LayoutTests/accessibility/mac/AOM-events-all.html
r229310 r229344 8 8 <input type="text" id="input"> 9 9 <button id="button">button</button> 10 11 <div id="combo" tabindex=0 role="combobox" aria-expanded="false" aria-label="Test"> 12 <div role="listbox"> 13 <div role="option">option 1</div> 14 </div></div> 10 15 11 16 <select id="group" multiple="multiple"> … … 74 79 function testShowContextMenu() { 75 80 debug("\nTest accessiblecontextmenu"); 76 node = document.getElementById(" button");77 axNode = accessibilityController.accessibleElementById(" button");81 node = document.getElementById("combo"); 82 axNode = accessibilityController.accessibleElementById("combo"); 78 83 79 84 node.onaccessiblecontextmenu = function() { -
trunk/Source/WebCore/ChangeLog
r229341 r229344 1 2018-03-06 Nan Wang <n_wang@apple.com> 2 3 AX: Flaky test after r229310 4 https://bugs.webkit.org/show_bug.cgi?id=183376 5 <rdar://problem/38188685> 6 7 Reviewed by Chris Fleizach. 8 9 The test that forces the context menu to show sometimes locks up 10 the test runner. Also, we missed a case where calling AXShowMenu 11 action on a combobox is not dispatching the accessibility event. 12 13 Using the combobox example to test the event dispatching in order to 14 avoid the test hang. 15 16 * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: 17 (-[WebAccessibilityObjectWrapper accessibilityPerformShowMenuAction]): 18 (-[WebAccessibilityObjectWrapper accessibilityShowContextMenu]): 19 1 20 2018-03-06 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
r229310 r229344 3522 3522 - (void)accessibilityPerformShowMenuAction 3523 3523 { 3524 if (m_object && m_object->dispatchAccessibilityEventWithType(AccessibilityEventType::ContextMenu)) 3525 return; 3526 3524 3527 if (m_object->roleValue() == AccessibilityRole::ComboBox) 3525 3528 m_object->setIsExpanded(true); … … 3538 3541 Page* page = m_object->page(); 3539 3542 if (!page) 3540 return;3541 3542 if (m_object->dispatchAccessibilityEventWithType(AccessibilityEventType::ContextMenu))3543 3543 return; 3544 3544
Note: See TracChangeset
for help on using the changeset viewer.