Changeset 220486 in webkit


Ignore:
Timestamp:
Aug 9, 2017 3:36:04 PM (7 years ago)
Author:
n_wang@apple.com
Message:

LayoutTest accessibility/presentation-role-iframe.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=175194

Reviewed by Chris Fleizach.

In the test we have no way to control which iframe will be loaded first.
Output the logs at the end of the test so that they are in order.

  • accessibility/presentation-role-iframe.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r220484 r220486  
     12017-08-09  Nan Wang  <n_wang@apple.com>
     2
     3        LayoutTest accessibility/presentation-role-iframe.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=175194
     5
     6        Reviewed by Chris Fleizach.
     7
     8        In the test we have no way to control which iframe will be loaded first.
     9        Output the logs at the end of the test so that they are in order.
     10
     11        * accessibility/presentation-role-iframe.html:
     12
    1132017-08-09  Commit Queue  <commit-queue@webkit.org>
    214
  • trunk/LayoutTests/accessibility/presentation-role-iframe.html

    r219075 r220486  
    3131var test3Ran = false;
    3232
     33var test1Log;
     34var test2Log;
     35var test3Log;
     36
    3337// Run the test for a iframe that has presentation role and one that does not.
    3438// The children should be different.
     
    3741  if (window.accessibilityController) {
    3842    var content = accessibilityController.accessibleElementById("content" + testNumber);
    39     debug(testNumber + ". Content child: " + content.childAtIndex(0).role);
    40     debug(testNumber + ". Content grand child: " + content.childAtIndex(0).childAtIndex(0).role);
    4143    if (testNumber == 1) {
    4244         test1Ran = true;
     45         test1Log = testLog(content, testNumber);
    4346    } else if (testNumber == 2) {
    4447         test2Ran = true;
     48         test2Log = testLog(content, testNumber);
    4549    } else if (testNumber == 3) {
    4650         test3Ran = true;
     51         test3Log = testLog(content, testNumber);
    4752    }
    4853
    4954    if (test3Ran && test2Ran && test1Ran) {
     55        debug(test1Log);
     56        debug(test2Log);
     57        debug(test3Log);
    5058        finishJSTest();
    5159    }
    5260  }
     61}
     62
     63function testLog(content, testNumber) {
     64    var result = testNumber + ". Content child: " + content.childAtIndex(0).role;
     65    result += "\n" + testNumber + ". Content grand child: " + content.childAtIndex(0).childAtIndex(0).role;
     66    return result;
    5367}
    5468</script>
Note: See TracChangeset for help on using the changeset viewer.