Changeset 188770 in webkit


Ignore:
Timestamp:
Aug 21, 2015 1:00:48 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

AX: Fix accessibility/mac/search-with-frames.html test
https://bugs.webkit.org/show_bug.cgi?id=148313

Patch by Nan Wang <n_wang@apple.com> on 2015-08-21
Reviewed by Chris Fleizach.

uiElementForSearchPredicate function needs five parameters for DumpRenderTree.

  • accessibility/mac/search-with-frames.html:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r188769 r188770  
     12015-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
    1132015-08-21  Doug Russell  <d_russell@apple.com>
    214
  • trunk/LayoutTests/accessibility/mac/search-with-frames.html

    r187799 r188770  
    4646          if (e.target.id == "frame3") {
    4747             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);
    4950             };
    5051          }
     
    6667        // Search for the buttons. This tests searching through the frames.
    6768        searchKey = "AXButtonSearchKey";
    68         resultElement = body.uiElementForSearchPredicate("", true, searchKey, "");
     69        resultElement = body.uiElementForSearchPredicate("", true, searchKey, "", false);
    6970        shouldBe("resultElement.role", "'AXRole: AXButton'");
    7071        shouldBe("resultElement.title", "'AXTitle: button1'");
    7172
    72         resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "");
     73        resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false);
    7374        shouldBe("resultElement.role", "'AXRole: AXButton'");
    7475        shouldBe("resultElement.title", "'AXTitle: button2'");
    7576
    76         resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "");
     77        resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false);
    7778        shouldBe("resultElement.role", "'AXRole: AXButton'");
    7879        shouldBe("resultElement.title", "'AXTitle: button3'");
    7980
    8081        // Now search backwards.
    81         resultElement = body.uiElementForSearchPredicate(resultElement, false, searchKey, "");
     82        resultElement = body.uiElementForSearchPredicate(resultElement, false, searchKey, "", false);
    8283        shouldBe("resultElement.role", "'AXRole: AXButton'");
    8384        shouldBe("resultElement.title", "'AXTitle: button2'");
     
    8586        // Search for the frames. First one is frame1
    8687        searchKey = "AXFrameSearchKey";
    87         resultElement = body.uiElementForSearchPredicate("", true, searchKey, "");
     88        resultElement = body.uiElementForSearchPredicate("", true, searchKey, "", false);
    8889        shouldBe("resultElement.role", "'AXRole: AXWebArea'");
    8990        shouldBe("resultElement.description", "'AXDescription: frame1'");
    9091
    9192        // Next we should find the frame inside of frame1.
    92         resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "");
     93        resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false);
    9394        shouldBe("resultElement.role", "'AXRole: AXWebArea'");
    9495        shouldBe("resultElement.description", "'AXDescription: frame1a'");
    9596
    9697        // Then we should find the frame after frame1.
    97         resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "");
     98        resultElement = body.uiElementForSearchPredicate(resultElement, true, searchKey, "", false);
    9899        shouldBe("resultElement.role", "'AXRole: AXWebArea'");
    99100        shouldBe("resultElement.description", "'AXDescription: frame2'");
  • trunk/LayoutTests/platform/mac/TestExpectations

    r188759 r188770  
    485485http/tests/misc/willCacheResponse-delegate-callback.html [ Failure ]
    486486http/tests/xmlhttprequest/basic-auth-nopassword.html [ Failure ]
    487 
    488 accessibility/mac/search-with-frames.html [ Pass Failure ]
    489487
    490488# --- Plugins ---
Note: See TracChangeset for help on using the changeset viewer.