⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243874 in webkit


Ignore:
Timestamp:
Apr 4, 2019, 10:16:31 AM (7 years ago)
Author:
Ryan Haddad
Message:

Cherry-pick r241307. rdar://problem/49610758

AX: Fix flaky accessibility/loading-iframe-sends-notification.html
https://bugs.webkit.org/show_bug.cgi?id=194546

Reviewed by Zalan Bujtas.

This test was relying on timing between load events being sent and accessibility events being sent.
We don't need to do that, we can more directly test this interplay.

  • accessibility/loading-iframe-sends-notification-expected.txt:
  • accessibility/loading-iframe-sends-notification.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@241307 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-607-branch/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/LayoutTests/ChangeLog

    r243778 r243874  
     12019-04-04  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Cherry-pick r241307. rdar://problem/49610758
     4
     5    AX: Fix flaky accessibility/loading-iframe-sends-notification.html
     6    https://bugs.webkit.org/show_bug.cgi?id=194546
     7   
     8    Reviewed by Zalan Bujtas.
     9   
     10    This test was relying on timing between load events being sent and accessibility events being sent.
     11    We don't need to do that, we can more directly test this interplay.
     12   
     13    * accessibility/loading-iframe-sends-notification-expected.txt:
     14    * accessibility/loading-iframe-sends-notification.html:
     15   
     16   
     17    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@241307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2019-02-12  Chris Fleizach  <cfleizach@apple.com>
     20
     21            AX: Fix flaky accessibility/loading-iframe-sends-notification.html
     22            https://bugs.webkit.org/show_bug.cgi?id=194546
     23
     24            Reviewed by Zalan Bujtas.
     25
     26            This test was relying on timing between load events being sent and accessibility events being sent.
     27            We don't need to do that, we can more directly test this interplay.
     28
     29            * accessibility/loading-iframe-sends-notification-expected.txt:
     30            * accessibility/loading-iframe-sends-notification.html:
     31
    1322019-04-02  Kocsen Chung  <kocsen_chung@apple.com>
    233
  • branches/safari-607-branch/LayoutTests/accessibility/loading-iframe-sends-notification-expected.txt

    r102877 r243874  
    1414Got notification on iframe.
    1515PASS findByAccessibleTitleSubstring(root, 'InnerButton') != null is true
    16 PASS gotIframeNotification is true
    1716PASS successfullyParsed is true
    1817
  • branches/safari-607-branch/LayoutTests/accessibility/loading-iframe-sends-notification.html

    r211573 r243874  
    4343    function runTest()
    4444    {
    45         window.gotIframeNotification = false;
    46 
    4745        if (window.accessibilityController) {
    4846            window.root = accessibilityController.rootElement;
     
    6058
    6159                debug("Got notification on iframe.");
    62                 gotIframeNotification = true;
    6360
    6461                // Check that the button within the iframe is now reachable from the root.
    6562                shouldBeTrue("findByAccessibleTitleSubstring(root, 'InnerButton') != null");
     63                accessibilityController.removeNotificationListener();
     64                finishJSTest();
    6665            });
    6766        }
    6867
    6968        window.iframeElement = document.getElementById("iframe");
    70         iframeElement.addEventListener("load", function() {
    71             window.setTimeout(function() {
    72                 shouldBeTrue("gotIframeNotification");
    73                 if (window.accessibilityController)
    74                     accessibilityController.removeNotificationListener();
    75 
    76                 finishJSTest();
    77             }, 10);
    78         }, false);
    7969
    8070        // Load content into the iframe. This will trigger the event
Note: See TracChangeset for help on using the changeset viewer.