From 9259d21c51998aba76749cad014561d27c8df97b Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Fri, 1 Jul 2022 04:48:55 +0000 Subject: [PATCH] Bug 1776332 - part 2: Create a tentative WPT to check attribute handling of joining elements by the builtin editor r=m_kato Similar to the previous patch, this adds tentative tests. Different from the previous tests, joining shouldn't touch attributes of the original nodes. This tests do not check which node is deleted from the document, but in the future, it should be tested after fixing bug 1735608 completely. Differential Revision: https://phabricator.services.mozilla.com/D150221 --- .../meta/editor/joining_nodes.html.ini | 86 -- .../mozilla/tests/editor/joining_nodes.html | 256 ---- ...ributes-at-joining-elements.tentative.html | 1167 +++++++++++++++++ 3 files changed, 1167 insertions(+), 342 deletions(-) delete mode 100644 testing/web-platform/mozilla/meta/editor/joining_nodes.html.ini delete mode 100644 testing/web-platform/mozilla/tests/editor/joining_nodes.html create mode 100644 testing/web-platform/tests/editing/other/keeping-attributes-at-joining-elements.tentative.html diff --git a/testing/web-platform/mozilla/meta/editor/joining_nodes.html.ini b/testing/web-platform/mozilla/meta/editor/joining_nodes.html.ini deleted file mode 100644 index 8a52821e8068..000000000000 --- a/testing/web-platform/mozilla/meta/editor/joining_nodes.html.ini +++ /dev/null @@ -1,86 +0,0 @@ -[joining_nodes.html] - type: testharness - [Joining
and
nodes, delete command] - expected: FAIL - - [Joining
and
nodes, forwarddelete command] - expected: FAIL - - [Joining
and
nodes, delete command] - expected: FAIL - - [Joining
and
nodes, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - - [Joining

and

elements, delete command] - expected: FAIL - - [Joining

and

elements, forwarddelete command] - expected: FAIL - diff --git a/testing/web-platform/mozilla/tests/editor/joining_nodes.html b/testing/web-platform/mozilla/tests/editor/joining_nodes.html deleted file mode 100644 index 2dd3b68ca58b..000000000000 --- a/testing/web-platform/mozilla/tests/editor/joining_nodes.html +++ /dev/null @@ -1,256 +0,0 @@ - - - - -Joining nodes with delete/forwardDelete command - - - - - - - diff --git a/testing/web-platform/tests/editing/other/keeping-attributes-at-joining-elements.tentative.html b/testing/web-platform/tests/editing/other/keeping-attributes-at-joining-elements.tentative.html new file mode 100644 index 000000000000..99a0dab56ab4 --- /dev/null +++ b/testing/web-platform/tests/editing/other/keeping-attributes-at-joining-elements.tentative.html @@ -0,0 +1,1167 @@ + + + + + +Not merging attributes at joining elements in contenteditable + + + + + + + +
+