Changeset 188770 in webkit
- Timestamp:
- Aug 21, 2015 1:00:48 PM (9 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r188769 r188770 1 2015-08-21 Nan Wang <n_wang@apple.com> 2 3 AX: Fix accessibility/mac/search-with-frames.html test 4 https://bugs.webkit.org/show_bug.cgi?id=148313 5 6 Reviewed by Chris Fleizach. 7 8 uiElementForSearchPredicate function needs five parameters for DumpRenderTree. 9 10 * accessibility/mac/search-with-frames.html: 11 * platform/mac/TestExpectations: 12 1 13 2015-08-21 Doug Russell <d_russell@apple.com> 2 14 -
trunk/LayoutTests/accessibility/mac/search-with-frames.html
r187799 r188770 46 46 if (e.target.id == "frame3") { 47 47 ifrm.onload = function() { 48 runTest(); 48 // runTest() might run on the same call stack and the frame is not actually finished loading. 49 setTimeout("runTest()", 0); 49 50 }; 50 51 } … … 66 67 // Search for the buttons. This tests searching through the frames. 67 68 searchKey = "AXButtonSearchKey"; 68 resultElement = body.uiElementForSearchPredicate("", true, searchKey, "" );69 resultElement = body.uiElementForSearchPredicate("", true, searchKey, "", false); 69 70 shouldBe("resultElement.role", "'AXRole: AXButton'"); 70 71 shouldBe("resultElement.title", "'AXTitle: button1'"); 71 72 72 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "" );73 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false); 73 74 shouldBe("resultElement.role", "'AXRole: AXButton'"); 74 75 shouldBe("resultElement.title", "'AXTitle: button2'"); 75 76 76 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "" );77 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false); 77 78 shouldBe("resultElement.role", "'AXRole: AXButton'"); 78 79 shouldBe("resultElement.title", "'AXTitle: button3'"); 79 80 80 81 // Now search backwards. 81 resultElement = body.uiElementForSearchPredicate(resultElement, false, searchKey, "" );82 resultElement = body.uiElementForSearchPredicate(resultElement, false, searchKey, "", false); 82 83 shouldBe("resultElement.role", "'AXRole: AXButton'"); 83 84 shouldBe("resultElement.title", "'AXTitle: button2'"); … … 85 86 // Search for the frames. First one is frame1 86 87 searchKey = "AXFrameSearchKey"; 87 resultElement = body.uiElementForSearchPredicate("", true, searchKey, "" );88 resultElement = body.uiElementForSearchPredicate("", true, searchKey, "", false); 88 89 shouldBe("resultElement.role", "'AXRole: AXWebArea'"); 89 90 shouldBe("resultElement.description", "'AXDescription: frame1'"); 90 91 91 92 // Next we should find the frame inside of frame1. 92 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "" );93 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false); 93 94 shouldBe("resultElement.role", "'AXRole: AXWebArea'"); 94 95 shouldBe("resultElement.description", "'AXDescription: frame1a'"); 95 96 96 97 // Then we should find the frame after frame1. 97 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "" );98 resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false); 98 99 shouldBe("resultElement.role", "'AXRole: AXWebArea'"); 99 100 shouldBe("resultElement.description", "'AXDescription: frame2'"); -
trunk/LayoutTests/platform/mac/TestExpectations
r188759 r188770 485 485 http/tests/misc/willCacheResponse-delegate-callback.html [ Failure ] 486 486 http/tests/xmlhttprequest/basic-auth-nopassword.html [ Failure ] 487 488 accessibility/mac/search-with-frames.html [ Pass Failure ]489 487 490 488 # --- Plugins ---
Note: See TracChangeset
for help on using the changeset viewer.