From d4cc61bf6a15e38bdb805752f199dfdfd2fa76cd Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Tue, 6 Jul 2021 04:55:27 +0000 Subject: [PATCH] Bug 1716863 - Add WPT to check "insertText" command when selection is collapsed in a void element, and its expected results almost match with Chrome r=m_kato Differential Revision: https://phabricator.services.mozilla.com/D119064 --- ...rt-text-in-void-element.tentative.html.ini | 126 ++++++++ ...insert-text-in-void-element.tentative.html | 292 ++++++++++++++++++ 2 files changed, 418 insertions(+) create mode 100644 testing/web-platform/meta/editing/other/insert-text-in-void-element.tentative.html.ini create mode 100644 testing/web-platform/tests/editing/other/insert-text-in-void-element.tentative.html diff --git a/testing/web-platform/meta/editing/other/insert-text-in-void-element.tentative.html.ini b/testing/web-platform/meta/editing/other/insert-text-in-void-element.tentative.html.ini new file mode 100644 index 000000000000..de4f11b8ba4e --- /dev/null +++ b/testing/web-platform/meta/editing/other/insert-text-in-void-element.tentative.html.ini @@ -0,0 +1,126 @@ +[insert-text-in-void-element.tentative.html] + [Inserting text when selection is collapsed in
which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in
which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node, an empty element and white-space only text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node] + expected: FAIL + + [Inserting text when selection is collapsed in
which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in
which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in
which follows a text node, an empty element and white-space only text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is only child] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which is followed by a text node] + expected: FAIL + + [Inserting text when selection is collapsed in which follows an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node and an empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a non-empty element] + expected: FAIL + + [Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node] + expected: FAIL diff --git a/testing/web-platform/tests/editing/other/insert-text-in-void-element.tentative.html b/testing/web-platform/tests/editing/other/insert-text-in-void-element.tentative.html new file mode 100644 index 000000000000..a67f061bc427 --- /dev/null +++ b/testing/web-platform/tests/editing/other/insert-text-in-void-element.tentative.html @@ -0,0 +1,292 @@ + + +Test insertText when selection collapsed in void element + + + +
+ \ No newline at end of file