Changeset 215222 in webkit


Ignore:
Timestamp:
Apr 11, 2017 2:20:16 AM (7 years ago)
Author:
Manuel Rego Casasnovas
Message:

[css-grid] Fix fast/css-grid-layout/grid-simplified-layout-positioned.html
https://bugs.webkit.org/show_bug.cgi?id=167538

Reviewed by Darin Adler.

fast/css-grid-layout/grid-simplified-layout-positioned.html was flacky
as the caret was not always painted in the test runner.
The test was checking for a crash in simplified layout (see bug #163450)
and has nothing to do with the caret or "autofocus" behavior.
"autofocus" was needed to get the crash, so this change modifies
the test to blur the element, so the caret is not painted anymore.

  • fast/css-grid-layout/grid-simplified-layout-positioned-expected.html:

Don't focus the input element.

  • fast/css-grid-layout/grid-simplified-layout-positioned.html: Blur

the input element to avoid showing the caret.

  • platform/mac-wk2/TestExpectations: Remove file from expectations.
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r215213 r215222  
     12017-04-11  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        [css-grid] Fix fast/css-grid-layout/grid-simplified-layout-positioned.html
     4        https://bugs.webkit.org/show_bug.cgi?id=167538
     5
     6        Reviewed by Darin Adler.
     7
     8        fast/css-grid-layout/grid-simplified-layout-positioned.html was flacky
     9        as the caret was not always painted in the test runner.
     10        The test was checking for a crash in simplified layout (see bug #163450)
     11        and has nothing to do with the caret or "autofocus" behavior.
     12        "autofocus" was needed to get the crash, so this change modifies
     13        the test to blur the element, so the caret is not painted anymore.
     14
     15        * fast/css-grid-layout/grid-simplified-layout-positioned-expected.html:
     16        Don't focus the input element.
     17        * fast/css-grid-layout/grid-simplified-layout-positioned.html: Blur
     18        the input element to avoid showing the caret.
     19        * platform/mac-wk2/TestExpectations: Remove file from expectations.
     20
    1212017-04-10  Jiewen Tan  <jiewen_tan@apple.com>
    222
  • trunk/LayoutTests/fast/css-grid-layout/grid-simplified-layout-positioned-expected.html

    r208586 r215222  
    1010This text and input should appear at 100x100 position.
    1111Like if they have a left and top margin of 100px.
    12 <input autofocus>
     12<input>
  • trunk/LayoutTests/fast/css-grid-layout/grid-simplified-layout-positioned.html

    r208586 r215222  
    1616Like if they have a left and top margin of 100px.
    1717<input autofocus>
     18<script>
     19  if (window.testRunner)
     20    window.testRunner.waitUntilDone();
     21  // "autofocus" is needed to force the simplified layout call.
     22  // We are removing the focus here to match the expected file and avoid issues with the caret.
     23  // We need a small timeout so "blur()" is run after "autofocus".
     24  setTimeout(function() {
     25    document.querySelector("input").blur();
     26    if (window.testRunner)
     27      window.testRunner.notifyDone();
     28  }, 100);
     29</script>
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r215181 r215222  
    614614webkit.org/b/168065 inspector/unit-tests/heap-snapshot.html [ Pass Failure Timeout ]
    615615
    616 webkit.org/b/167538 [ Sierra ] fast/css-grid-layout/grid-simplified-layout-positioned.html [ Pass ImageOnlyFailure ]
    617 
    618616webkit.org/b/168235 [ Debug ] imported/w3c/web-platform-tests/html/semantics/text-level-semantics/the-a-element/a-download-click.html [ Pass Failure ]
    619617
Note: See TracChangeset for help on using the changeset viewer.