Changeset 237411 in webkit


Ignore:
Timestamp:
Oct 25, 2018 5:46:28 AM (6 years ago)
Author:
fred.wang@free.fr
Message:

Add more tests for the Find UI
https://bugs.webkit.org/show_bug.cgi?id=190823

Patch by Frederic Wang <fwang@igalia.com> on 2018-10-25
Reviewed by Antonio Gomes.

We add more tests for iOS's find UI to cover cases fixed by r224284. Equivalent tests for
subframes currently fails when frame flattening is disabled, they will be handled in bug
184297.

  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-expected.png: Added.
  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-expected.txt: Added.
  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit-expected.png: Added.
  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit-expected.txt: Added.
  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit.html: Added.

Test with a match at the limit of the scrolling element.

  • platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position.html: Added. Test

with a match at the middle of the scrolling element.

  • platform/ios/fast/scrolling/find-text-in-overflow-node.html: Use names for parameters to

make it more explicit.

  • platform/ios/fast/scrolling/find-text-in-subframe-expected.txt: Added.
  • platform/ios/fast/scrolling/find-text-in-subframe.html: Added. Test with a subframe instead

of an overflow node.

Location:
trunk/LayoutTests
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r237408 r237411  
     12018-10-25  Frederic Wang  <fwang@igalia.com>
     2
     3        Add more tests for the Find UI
     4        https://bugs.webkit.org/show_bug.cgi?id=190823
     5
     6        Reviewed by Antonio Gomes.
     7
     8        We add more tests for iOS's find UI to cover cases fixed by r224284. Equivalent tests for
     9        subframes currently fails when frame flattening is disabled, they will be handled in bug
     10        184297.
     11
     12        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-expected.png: Added.
     13        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-expected.txt: Added.
     14        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit-expected.png: Added.
     15        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit-expected.txt: Added.
     16        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position-limit.html: Added.
     17        Test with a match at the limit of the scrolling element.
     18        * platform/ios/fast/scrolling/find-text-in-overflow-node-indicator-position.html: Added. Test
     19        with a match at the middle of the scrolling element.
     20        * platform/ios/fast/scrolling/find-text-in-overflow-node.html: Use names for parameters to
     21        make it more explicit.
     22        * platform/ios/fast/scrolling/find-text-in-subframe-expected.txt: Added.
     23        * platform/ios/fast/scrolling/find-text-in-subframe.html: Added. Test with a subframe instead
     24        of an overflow node.
     25
    1262018-10-25  Jiewen Tan  <jiewen_tan@apple.com>
    227
  • trunk/LayoutTests/platform/ios/fast/scrolling/find-text-in-overflow-node.html

    r229801 r237411  
    1515          return;
    1616
     17        var findOptions = 1 << 6; // show find indicator
     18        var maxCount = 4;
    1719        var node = document.getElementById("scrollable");
    1820        test(function() {
     
    2224        var afterMatch4 = async_test("Position of overflow node after the fourth result");
    2325        testRunner.runUIScript(`
    24           uiController.findString("match", 0, 4); // match
    25           uiController.findString("match", 0, 4); // match 2
    26           uiController.findString("match", 0, 4); // match 3
     26          uiController.findString("match", ${findOptions}, ${maxCount}); // match
     27          uiController.findString("match", ${findOptions}, ${maxCount}); // match 2
     28          uiController.findString("match", ${findOptions}, ${maxCount}); // match 3
    2729          uiController.uiScriptComplete("Done");
    2830        `, afterMatch3.step_func_done(function() {
    2931          assert_equals(node.scrollTop, 0);
    3032          testRunner.runUIScript(`
    31             uiController.findString("match", 0, 4); // match 4
     33            uiController.findString("match", ${findOptions}, ${maxCount}); // match 4
    3234            uiController.uiScriptComplete("Done");
    3335          `, afterMatch4.step_func_done(function() {
Note: See TracChangeset for help on using the changeset viewer.