Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1593)

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/delete_with_redundant_space.html

Issue 2248033004: Convert editing/deleting/delete-3608462-fix.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-17T17:16:57 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/deleting/delete_with_redundant_space.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete_with_redundant_space.html b/third_party/WebKit/LayoutTests/editing/deleting/delete_with_redundant_space.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc36de7691efcecccd5772a45778ac716f9f5aa6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete_with_redundant_space.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+ test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<span>a<img src="../resources/abe.png">new <br>foo |<i> </i> <img src="../resources/abe.png"> conceived</span>',
+ '</div>',
+ ].join(''),
+ selection => {
+ for (var i = 0; i < 4; ++i)
+ selection.document.execCommand('delete');
+ },
+ [
+ '<div contenteditable>',
+ '<span>a<img src="../resources/abe.png">new <br>|<img src="../resources/abe.png"> conceived</span>',
+ '</div>',
+ ].join('')),
+ 'Delete command deletes a redundant I element.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698