Changeset 250823 in webkit
- Timestamp:
- Oct 8, 2019 6:56:50 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 51 added
- 1 deleted
- 3 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r250821 r250823 1 2019-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 1 11 2019-10-08 Antti Koivisto <antti@apple.com> 2 12 -
trunk/LayoutTests/imported/w3c/ChangeLog
r250822 r250823 1 2019-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 1 64 2019-10-08 Rob Buis <rbuis@igalia.com> 2 65 -
trunk/LayoutTests/imported/w3c/resources/import-expectations.json
r250783 r250823 200 200 "web-platform-tests/html/infrastructure": "skip", 201 201 "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", 202 203 "web-platform-tests/html/obsolete": "skip", 203 204 "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 38 38 })); 39 39 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"; 41 41 }, "Autofocus shouldn't work in cross-origin iframe"); 42 42 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/interaction/focus/the-autofocus-attribute/same-origin-autofocus.html
r250822 r250823 1 <! DOCTYPEhtml>1 <!doctype html> 2 2 <html> 3 3 <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> 4 7 <script src="/resources/testharness.js"></script> 5 8 <script src="/resources/testharnessreport.js"></script> … … 9 12 </head> 10 13 <body> 11 <h1>Autofocus should n't work in cross-originiframe.</h1>14 <h1>Autofocus should work in the same origin grand child iframe.</h1> 12 15 <iframe id="child" width="200" height="100"></iframe> 13 14 16 <script> 15 17 let parent_loaded = false; 16 let child_loaded = false;18 let grand_child_loaded = false; 17 19 18 20 async_test(function(t) { 19 21 function pingChildIfBothFramesLoaded() { 20 if (parent_loaded && child_loaded)22 if (parent_loaded && grand_child_loaded) 21 23 frames[0].postMessage("report_focus_state", "*"); 22 24 } … … 28 30 29 31 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; 32 34 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") { 34 38 assert_unreached("The iframe shouldn't get focus"); 35 } else if (event.data == "child_is_not_focused") {36 t.done();37 39 } 38 40 })); 39 41 document.getElementById("child").src = 40 get_host_info().HTTP_ REMOTE_ORIGIN + "/WebKit/html/semantics/forms/autofocus/resources/child-autofocus.html";41 }, "Autofocus should n't work in cross-originiframe");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"); 42 44 </script> 43 45 </body>
Note: See TracChangeset
for help on using the changeset viewer.