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/inserting/merge_after_delete.html

Issue 2182013002: Convert editing/pasteboard/merge-after-delete*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-27T10:40:52 Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html b/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
new file mode 100644
index 0000000000000000000000000000000000000000..865efc63ebc87a6b383d0ebe70de6c9f3d3661aa
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
@@ -0,0 +1,44 @@
+<!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><div>f^oo</div>bar|<br></div>',
+ 'insertHTML <div>foo</div><br class="Apple-interchange-newline">',
+ '<div contenteditable><div>ffoo</div><div>|<br></div></div>'),
+ 'BR interchange-newline is not inserted');
+
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div style="color:red">b^ar</div>',
+ '<div style="color:blue">baz|<br></div>',
+ '</div>',
+ ].join(''),
+ 'insertHTML <div>FOO</div><div>BAR</div>',
+ [
+ '<div contenteditable>',
+ '<div style="color:red">bFOO</div>',
+ // last BR isn't copied from original DIV.
+ '<div>BAR|</div>',
+ '</div>',
+ ].join('')),
+ 'Use existing DIV for partial replacement');
+
+test(() => assert_selection(
+ [
+ '<div contenteditable>',
+ '<div style="color:red">b^ar</div>',
+ 'baz|<br>',
+ '</div>',
+ ].join(''),
+ 'insertHTML <div>FOO</div><div>BAR</div>',
+ [
+ '<div contenteditable>',
+ '<div style="color:red">bFOO</div>',
+ '<div>BAR|</div>',
+ '</div>',
+ ].join('')),
+ 'Replace text+BR to DIV');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698