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/replace_text_with_br.html

Issue 2332423004: Convert editing/inserting/insert-3654864-fix.html to use w3c test harness (Closed)
Patch Set: 2016-09-14T14:49:55 Created 4 years, 3 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/inserting/replace_text_with_br.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/replace_text_with_br.html b/third_party/WebKit/LayoutTests/editing/inserting/replace_text_with_br.html
new file mode 100644
index 0000000000000000000000000000000000000000..18c1d60a52e847041b37eaedf3191dfa3a941831
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/inserting/replace_text_with_br.html
@@ -0,0 +1,17 @@
+<!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>^foo bar|</div>',
+ 'insertLineBreak',
+ '<div contenteditable><br>|<br></div>'),
+ 'replace text with BR');
+
+test(() => assert_selection(
+ '<div contenteditable>^foo <i> bar|</i></div>',
+ 'insertLineBreak',
+ '<div contenteditable><br>|<br></div>'),
+ 'replace text and I with BR');
+</script>

Powered by Google App Engine
This is Rietveld 408576698