Changeset 160907 in webkit
- Timestamp:
- Dec 20, 2013 6:12:04 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r160905 r160907 1 2013-12-20 Mario Sanchez Prada <mario.prada@samsung.com> 2 3 [ATK] [WK2] platform/gtk/accessibility/roles-exposed.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=125854 5 6 Reviewed by Chris Fleizach. 7 8 Updated tests and expectations to keep them passing after the 9 change done in DRT, without changing their actual purpose. 10 11 * platform/gtk/accessibility/roles-exposed.html: Make sure we 12 print "AXRole: (no element)" when accessibilityElementByID() does 13 not return a valid object, not to confuse it with cases where the 14 returned string for the role is an empty string. 15 * platform/gtk/accessibility/roles-exposed-expected.txt: Update 16 test expectations to reflect the "AXRole: (no element)" string 17 that is now being exposed. Also, replace the (wrongly added) PASS 18 expectations with FAIL for rowgroups, which are currently not 19 being exposed for ATK either. 20 21 * accessibility/deleting-iframe-destroys-axcache.html: Just 22 consider the first and third sons of the accessibility object for 23 the body (instead of the grandsons), so the test can run both in 24 Mac, where sons and grandsons are exposed, and ATK, where only 25 sons are exposed (no StaticText objects exposed there). 26 27 * accessibility/non-data-table-cell-title-ui-element.html: Use 28 accessibilityElementById() to get the accessibility object for the 29 "skip" table header instead of navigating with childAtIndex(), 30 since the hierarchy is not the same for Mac and ATK based ports. 31 32 * platform/mac/accessibility/search-predicate.html: Do not rely on 33 shouldBe() together with the string "AXRole: " when asking for the 34 role of objects that should no longer be in the accessibility 35 tree, and use shouldBeUndefined() instead. 36 * platform/mac/accessibility/search-when-element-starts-in-table.html: Ditto. 37 38 * platform/mac/accessibility/search-predicate-expected.txt: Update 39 expectations according to the usage of shouldBeUndefined(). 40 * platform/mac/accessibility/search-when-element-starts-in-table-expected.txt: Ditto. 41 42 * platform/mac/TestExpectations: Add loading-iframe-updates-axtree.html 43 here, since it seems not to be returning the expected values for 44 either the scrollarea and the webarea in the iframe (see bug 126066). 45 46 * platform/mac-wk2/TestExpectations: Add search-when-element-starts-in-table.html 47 here, since it does not return an undefined object in WebKit2 when 48 the search query should return no results (see bug 125996). 49 1 50 2013-12-20 Radu Stavila <stavila@adobe.com> 2 51 -
trunk/LayoutTests/accessibility/deleting-iframe-destroys-axcache.html
r160850 r160907 39 39 window.root = accessibilityController.rootElement; 40 40 window.body = root.childAtIndex(0); 41 window.before = body.childAtIndex(0) .childAtIndex(0);41 window.before = body.childAtIndex(0); 42 42 window.iframe = body.childAtIndex(1).childAtIndex(0); 43 window.after = body.childAtIndex(2) .childAtIndex(0);43 window.after = body.childAtIndex(2); 44 44 45 45 window.frameBody = window.iframe.childAtIndex(0); … … 58 58 window.newRoot = accessibilityController.rootElement; 59 59 window.newBody = newRoot.childAtIndex(0); 60 window.newBefore = newBody.childAtIndex(0) .childAtIndex(0);61 window.newAfter = newBody.childAtIndex(1) .childAtIndex(0);60 window.newBefore = newBody.childAtIndex(0); 61 window.newAfter = newBody.childAtIndex(1); 62 62 63 63 document.getElementById("console").innerText += "\nAfter:\n"; -
trunk/LayoutTests/accessibility/non-data-table-cell-title-ui-element.html
r160850 r160907 15 15 <th>fail</th> 16 16 <th>blocked</th> 17 <th >skip</th>17 <th id="skip">skip</th> 18 18 <th>test</th> 19 19 </tr> … … 29 29 30 30 var pass = document.getElementById("body"); 31 body.focus();32 31 // get the <th>skip</th> element 33 var group = accessibilityController. focusedElement.childAtIndex(5);32 var group = accessibilityController.accessibleElementById("skip"); 34 33 var titleUI = group.titleUIElement(); 35 34 var allAttributes = ""; -
trunk/LayoutTests/platform/gtk/accessibility/roles-exposed-expected.txt
r160850 r160907 173 173 174 174 FAIL: tr 175 175 AXRole: (no element) 176 176 Expected: AXRow 177 177 … … 180 180 181 181 FAIL: tr 182 182 AXRole: (no element) 183 183 Expected: AXRow 184 184 … … 187 187 188 188 FAIL: tr 189 189 AXRole: (no element) 190 190 Expected: AXRow 191 191 … … 280 280 AXRole: AXTable 281 281 282 PASS: div[role=rowgroup] 283 284 282 FAIL: div[role=rowgroup] 283 AXRole: (no element) 284 Expected: 285 285 286 FAIL: div[role=row] 286 287 AXRole: (no element) 287 288 Expected: AXRow 288 289 … … 399 400 AXRole: AXTable 400 401 401 PASS: div[role=rowgroup] 402 403 402 FAIL: div[role=rowgroup] 403 AXRole: (no element) 404 Expected: 405 404 406 FAIL: div[role=row] 405 407 AXRole: (no element) 406 408 Expected: AXRow 407 409 -
trunk/LayoutTests/platform/gtk/accessibility/roles-exposed.html
r160850 r160907 292 292 role = axElement.role; 293 293 else 294 role = 'AXRole: ';294 role = 'AXRole: (no element)'; 295 295 296 296 output = el.tagName.toLowerCase() + (ariaRole?("[role="+ariaRole+"]"):''); -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r160850 r160907 383 383 webkit.org/b/124476 platform/mac-wk2/plugins/slow/asynchronous-plugin-initialization-multiple.html [ Pass Failure ] 384 384 385 # uiElementForSearchPredicate() is not returning an undefined object when the search returns no results 386 webkit.org/b/125996 platform/mac/accessibility/search-when-element-starts-in-table.html [ Failure ] 387 385 388 ### END OF (1) Classified failures with bug reports 386 389 ######################################## -
trunk/LayoutTests/platform/mac/TestExpectations
r160903 r160907 33 33 fast/dom/Window/slow-unload-handler.html 34 34 fast/dom/Window/slow-unload-handler-only-frame-is-stopped.html 35 36 # This test fails on release and crashes on debug because of trying to use isEqual() with undefined objects 37 webkit.org/b/126066 accessibility/loading-iframe-updates-axtree.html [ Failure Crash ] 35 38 36 39 webkit.org/b/116636 accessibility/document-attributes.html [ Failure ] -
trunk/LayoutTests/platform/mac/accessibility/search-predicate-expected.txt
r160850 r160907 146 146 PASS resultElement.role is 'AXRole: AXButton' 147 147 PASS resultElement.title is 'AXTitle: Submit' 148 PASS resultElement .role is 'AXRole: '148 PASS resultElement is undefined. 149 149 PASS successfullyParsed is true 150 150 -
trunk/LayoutTests/platform/mac/accessibility/search-predicate.html
r160850 r160907 365 365 // there should be no more visible buttons 366 366 resultElement = containerElement.uiElementForSearchPredicate(resultElement, true, "AXButtonSearchKey", "", true); 367 shouldBe ("resultElement.role", "'AXRole: '");367 shouldBeUndefined("resultElement"); 368 368 369 369 } -
trunk/LayoutTests/platform/mac/accessibility/search-when-element-starts-in-table-expected.txt
r160850 r160907 11 11 PASS resultElement.role is 'AXRole: AXHeading' 12 12 PASS resultElement.title is 'AXTitle: outside heading' 13 PASS resultElement .role is 'AXRole: '13 PASS resultElement is undefined. 14 14 PASS resultElement.role is 'AXRole: AXHeading' 15 15 PASS resultElement.role is 'AXRole: AXCell' -
trunk/LayoutTests/platform/mac/accessibility/search-when-element-starts-in-table.html
r160850 r160907 33 33 // A search for the previous heading should return nothing. 34 34 resultElement = containerElement.uiElementForSearchPredicate(heading, false, "AXHeadingSearchKey", "", false); 35 shouldBe ("resultElement.role", "'AXRole: '");35 shouldBeUndefined("resultElement"); 36 36 37 37 // When asking the child of the heading for the previous element, it should return the heading. -
trunk/Tools/ChangeLog
r160903 r160907 1 2013-12-20 Mario Sanchez Prada <mario.prada@samsung.com> 2 3 [ATK] [WK2] platform/gtk/accessibility/roles-exposed.html is failing 4 https://bugs.webkit.org/show_bug.cgi?id=125854 5 6 Reviewed by Chris Fleizach. 7 8 Ensure we don't ever create instances of AccessibilityUIElement 9 wrapping invalid platform-specific accessibility objects in DRT, 10 both for consistency with what WKTR does (so we avoid situations 11 where some tests fail in WK2 and not in WK1) and also to avoid 12 overlooking tests that might not be checking the right thing. 13 14 * DumpRenderTree/AccessibilityUIElement.cpp: 15 (AccessibilityUIElement::makeJSAccessibilityUIElement): Return a 16 nullPtr if the platformUIElement() is not a valid one. 17 * DumpRenderTree/AccessibilityUIElement.h: 18 (AccessibilityUIElement::platformUIElement): Added const modifier. 19 1 20 2013-12-20 Mario Sanchez Prada <mario.prada@samsung.com> 2 21 -
trunk/Tools/DumpRenderTree/AccessibilityUIElement.cpp
r160850 r160907 1359 1359 JSObjectRef AccessibilityUIElement::makeJSAccessibilityUIElement(JSContextRef context, const AccessibilityUIElement& element) 1360 1360 { 1361 if (!element.platformUIElement()) 1362 return nullptr; 1363 1361 1364 return JSObjectMake(context, AccessibilityUIElement::getJSClass(), new AccessibilityUIElement(element)); 1362 1365 } -
trunk/Tools/DumpRenderTree/AccessibilityUIElement.h
r160850 r160907 68 68 ~AccessibilityUIElement(); 69 69 70 PlatformUIElement platformUIElement() { return m_element; }70 PlatformUIElement platformUIElement() const { return m_element; } 71 71 72 72 static JSObjectRef makeJSAccessibilityUIElement(JSContextRef, const AccessibilityUIElement&);
Note: See TracChangeset
for help on using the changeset viewer.