Changeset 250823 in webkit


Ignore:
Timestamp:
Oct 8, 2019 6:56:50 AM (5 years ago)
Author:
ajuma@chromium.org
Message:

Import autofocus Web Platform Tests
https://bugs.webkit.org/show_bug.cgi?id=202641

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Import web platform tests for autofocus, and remove duplicated test from
http/wpt/html/semantics/forms/autofocus.

  • resources/import-expectations.json:
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-in-not-fully-active-document-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-in-not-fully-active-document.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-on-stable-document-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-on-stable-document.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-reconnected-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-reconnected.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-but-before-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-but-before.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/first.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/focusable-area-in-top-document-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/focusable-area-in-top-document.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-cross-origin-autofocus-expected.txt: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub-expected.txt.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-cross-origin-autofocus.html: Copied from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub.html.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-sandboxed-automatic-features-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-sandboxed-automatic-features.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/not-on-first-task-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/not-on-first-task.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/queue-non-focusable-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/queue-non-focusable.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/child-autofocus.html: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/resources/child-autofocus.html.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/child-iframe.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/erase-first.css: Added.

(#first):

  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/frame-with-autofocus-element.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/grand-child-autofocus.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/moving-autofocus-to-parent.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/utils.js: Added.

(waitForEvent):
(timeOut):
(async.waitUntilStableAutofocusState):

  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/w3c-import.log: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus.html: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub.html.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-another-top-level-browsing-context-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-another-top-level-browsing-context.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-non-focusable-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-non-focusable.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-not-fully-active-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-not-fully-active.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/spin-by-blocking-style-sheet-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/spin-by-blocking-style-sheet.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/supported-elements-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/supported-elements.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering.html: Added.
  • web-platform-tests/html/interaction/focus/the-autofocus-attribute/w3c-import.log: Added.

LayoutTests:

  • platform/ios-wk2/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
  • platform/mac-wk1/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
Location:
trunk/LayoutTests
Files:
51 added
1 deleted
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r250821 r250823  
     12019-10-08  Ali Juma  <ajuma@chromium.org>
     2
     3        Import autofocus Web Platform Tests
     4        https://bugs.webkit.org/show_bug.cgi?id=202641
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * platform/ios-wk2/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
     9        * platform/mac-wk1/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
     10
    1112019-10-08  Antti Koivisto  <antti@apple.com>
    212
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r250822 r250823  
     12019-10-08  Ali Juma  <ajuma@chromium.org>
     2
     3        Import autofocus Web Platform Tests
     4        https://bugs.webkit.org/show_bug.cgi?id=202641
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Import web platform tests for autofocus, and remove duplicated test from
     9        http/wpt/html/semantics/forms/autofocus.
     10
     11        * resources/import-expectations.json:
     12        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-in-not-fully-active-document-expected.txt: Added.
     13        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-in-not-fully-active-document.html: Added.
     14        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-on-stable-document-expected.txt: Added.
     15        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/autofocus-on-stable-document.html: Added.
     16        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-expected.txt: Added.
     17        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-reconnected-expected.txt: Added.
     18        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-reconnected.html: Added.
     19        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-but-before-expected.txt: Added.
     20        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-but-before.html: Added.
     21        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later-expected.txt: Added.
     22        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first-when-later.html: Added.
     23        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/first.html: Added.
     24        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/focusable-area-in-top-document-expected.txt: Added.
     25        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/focusable-area-in-top-document.html: Added.
     26        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-cross-origin-autofocus-expected.txt: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub-expected.txt.
     27        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-cross-origin-autofocus.html: Copied from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub.html.
     28        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-sandboxed-automatic-features-expected.txt: Added.
     29        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-sandboxed-automatic-features.html: Added.
     30        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/not-on-first-task-expected.txt: Added.
     31        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/not-on-first-task.html: Added.
     32        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/queue-non-focusable-expected.txt: Added.
     33        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/queue-non-focusable.html: Added.
     34        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/child-autofocus.html: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/resources/child-autofocus.html.
     35        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/child-iframe.html: Added.
     36        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/erase-first.css: Added.
     37        (#first):
     38        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/frame-with-autofocus-element.html: Added.
     39        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/grand-child-autofocus.html: Added.
     40        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/moving-autofocus-to-parent.html: Added.
     41        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/utils.js: Added.
     42        (waitForEvent):
     43        (timeOut):
     44        (async.waitUntilStableAutofocusState):
     45        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/resources/w3c-import.log: Added.
     46        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus-expected.txt: Added.
     47        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus.html: Renamed from LayoutTests/http/wpt/html/semantics/forms/autofocus/no-cross-origin-autofocus.sub.html.
     48        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-another-top-level-browsing-context-expected.txt: Added.
     49        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-another-top-level-browsing-context.html: Added.
     50        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment-expected.txt: Added.
     51        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-document-with-fragment.html: Added.
     52        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-non-focusable-expected.txt: Added.
     53        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-non-focusable.html: Added.
     54        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-not-fully-active-expected.txt: Added.
     55        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/skip-not-fully-active.html: Added.
     56        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/spin-by-blocking-style-sheet-expected.txt: Added.
     57        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/spin-by-blocking-style-sheet.html: Added.
     58        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/supported-elements-expected.txt: Added.
     59        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/supported-elements.html: Added.
     60        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering-expected.txt: Added.
     61        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/update-the-rendering.html: Added.
     62        * web-platform-tests/html/interaction/focus/the-autofocus-attribute/w3c-import.log: Added.
     63
    1642019-10-08  Rob Buis  <rbuis@igalia.com>
    265
  • trunk/LayoutTests/imported/w3c/resources/import-expectations.json

    r250783 r250823  
    200200    "web-platform-tests/html/infrastructure": "skip",
    201201    "web-platform-tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers": "skip",
     202    "web-platform-tests/html/interaction/focus/the-autofocus-attribute": "import",
    202203    "web-platform-tests/html/obsolete": "skip",
    203204    "web-platform-tests/html/rendering": "skip",
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/no-cross-origin-autofocus.html

    r250822 r250823  
    3838      }));
    3939      document.getElementById("child").src =
    40           get_host_info().HTTP_REMOTE_ORIGIN + "/WebKit/html/semantics/forms/autofocus/resources/child-autofocus.html";
     40          get_host_info().HTTP_REMOTE_ORIGIN + "/html/interaction/focus/the-autofocus-attribute/resources/child-autofocus.html";
    4141    }, "Autofocus shouldn't work in cross-origin iframe");
    4242  </script>
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus.html

    r250822 r250823  
    1 <!DOCTYPE html>
     1<!doctype html>
    22<html>
    33<head>
     4<meta charset=utf-8>
     5<meta name="assert" content="`autofocus` should work in the same origin iframe even if there is a cross-origin iframe between the parent and the same origin iframe">
     6<title>autofocus in the same origin grand child iframe</title>
    47<script src="/resources/testharness.js"></script>
    58<script src="/resources/testharnessreport.js"></script>
     
    912</head>
    1013<body>
    11   <h1>Autofocus shouldn't work in cross-origin iframe.</h1>
     14  <h1>Autofocus should work in the same origin grand child iframe.</h1>
    1215  <iframe id="child" width="200" height="100"></iframe>
    13 
    1416  <script>
    1517    let parent_loaded = false;
    16     let child_loaded = false;
     18    let grand_child_loaded = false;
    1719
    1820    async_test(function(t) {
    1921      function pingChildIfBothFramesLoaded() {
    20         if (parent_loaded && child_loaded)
     22        if (parent_loaded && grand_child_loaded)
    2123          frames[0].postMessage("report_focus_state", "*");
    2224      }
     
    2830
    2931      window.addEventListener("message", t.step_func(event => {
    30         if (event.data == "child_loaded") {
    31           child_loaded = true;
     32        if (event.data == "ready") {
     33          grand_child_loaded = true;
    3234          pingChildIfBothFramesLoaded();
    33         } else if (event.data == "child_is_focused") {
     35        } else if (event.data == "grand_child_is_focused") {
     36          t.done();
     37        } else if (event.data == "grand_child_is_not_focused") {
    3438          assert_unreached("The iframe shouldn't get focus");
    35         } else if (event.data == "child_is_not_focused") {
    36           t.done();
    3739        }
    3840      }));
    3941      document.getElementById("child").src =
    40           get_host_info().HTTP_REMOTE_ORIGIN + "/WebKit/html/semantics/forms/autofocus/resources/child-autofocus.html";
    41     }, "Autofocus shouldn't work in cross-origin iframe");
     42          get_host_info().HTTP_NOTSAMESITE_ORIGIN + "/html/interaction/focus/the-autofocus-attribute/resources/child-iframe.html";
     43    }, "Autofocus should work in the same origin grand child iframe");
    4244  </script>
    4345</body>
Note: See TracChangeset for help on using the changeset viewer.