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

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

Issue 2253643003: Convert editing/deleting/collapse-whitespace-3587601-fix.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-17T16:45:58 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_map_area.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete_map_area.html b/third_party/WebKit/LayoutTests/editing/deleting/delete_map_area.html
new file mode 100644
index 0000000000000000000000000000000000000000..01c74794fb1db75e0973b673d16fad966f6d809a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/delete_map_area.html
@@ -0,0 +1,19 @@
+<!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> test <map name=m><area coords="0,0,0,0" href=""></map> test| </span>',
+ '</div>',
+ ].join(''),
+ selection => {
+ for (var i = 0; i < 9; ++i)
+ selection.document.execCommand('delete');
+ },
+ // BR is a placeholder.
+ '<div contenteditable>|<br></div>'),
+ 'Delete command deletes MAP and AREA too.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698