Changeset 190733 in webkit


Ignore:
Timestamp:
Oct 8, 2015 10:44:18 AM (9 years ago)
Author:
ap@apple.com
Message:

fast/events/scroll-after-click-on-tab-index.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=149859

Reviewed by Simon Fraser.

  • fast/events/scroll-after-click-on-tab-index-expected.txt:
  • fast/events/scroll-after-click-on-tab-index.html:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r190732 r190733  
     12015-10-08  Alexey Proskuryakov  <ap@apple.com>
     2
     3        fast/events/scroll-after-click-on-tab-index.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=149859
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/events/scroll-after-click-on-tab-index-expected.txt:
     9        * fast/events/scroll-after-click-on-tab-index.html:
     10        * platform/mac/TestExpectations:
     11
    1122015-10-08  Jiewen Tan  <jiewen_tan@apple.com>
    213
  • trunk/LayoutTests/fast/events/scroll-after-click-on-tab-index-expected.txt

    r69582 r190733  
    11ALERT: Scroll position 0
    22Click the text below and then try to scroll.
     3PASS Scroll position is more than 0
    34PASS successfullyParsed is true
    45
    56TEST COMPLETE
    6 Scroll position is more than 0
    7 PASS document.body.scrollTop > 0 is true
    87
    98
  • trunk/LayoutTests/fast/events/scroll-after-click-on-tab-index.html

    r155267 r190733  
    11<html>
    2 <script src="../../resources/js-test-pre.js"></script>
     2<script src="../../resources/js-test.js"></script>
    33<script>
    44function getCenterFor(element)
     
    1515    return;
    1616
    17   testRunner.waitUntilDone();
    18   testRunner.dumpAsText();
     17  jsTestIsAsync = true;
    1918
    2019  alert("Scroll position " + document.body.scrollTop);
     
    2423  eventSender.mouseUp();
    2524  eventSender.keyDown("downArrow");
    26   setTimeout(verifyScrolling, 15);
     25  intervalID = setInterval(function() {
     26    if (document.body.scrollTop > 0) {
     27      testPassed("Scroll position is more than 0");
     28      done();
     29    }
     30  }, 10);
     31  timeoutID = setTimeout(function() {
     32    testFailed("Scroll position was still 10 after 20 seconds");
     33    done();
     34  }, 20000);
    2735}
    2836
    29 function verifyScrolling()
     37function done()
    3038{
    31   debug("Scroll position is more than 0");
    32   shouldBe("document.body.scrollTop > 0", "true");
    33   testRunner.notifyDone();
     39  clearInterval(intervalID);
     40  clearTimeout(timeoutID);
     41  finishJSTest();
    3442}
    3543
     
    4048<input type="radio" id="myradio">Click the text below and then try to scroll.<br>
    4149<div id="console"></div>
    42 <script src="../../resources/js-test-post.js"></script>
    4350<br><br><br><br><br><br><br><br><br><br>
    4451<span tabindex=1 id="sp">My span</span>
  • trunk/LayoutTests/platform/mac/TestExpectations

    r190729 r190733  
    13351335# Marking test as flaky in El Capitan
    13361336webkit.org/b/149819 [ Debug ElCapitan+ ] compositing/video/video-poster.html [ Pass Crash ]
    1337 
    1338 # Marking test as flaky
    1339 webkit.org/b/149859 fast/events/scroll-after-click-on-tab-index.html [ Pass Failure ]
Note: See TracChangeset for help on using the changeset viewer.