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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/insert_and_place_holder.html

Issue 2341953005: Convert editing/pasteboard/displaced-{,generic-}placeholder.html.html to use w3c test harness (Closed)
Patch Set: 2016-09-15T18:48:33 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/displaced-generic-placeholder.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/insert_and_place_holder.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert_and_place_holder.html b/third_party/WebKit/LayoutTests/editing/inserting/insert_and_place_holder.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b6c32c4b9f23054da535ecf1fd0120f84a0843f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert_and_place_holder.html
@@ -0,0 +1,18 @@
+<!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>|<br></div>',
+ 'insertHTML abc<div>def</div>',
+ '<div contenteditable>abc<div>def|</div></div>'),
+ 'displaced generic placeholder');
+
+// Note: Blink doesn't use class="webkit-block-placeholder" anymore.
+test(() => assert_selection(
+ '<div contenteditable>|<br class="webkit-block-placeholder"></div>',
+ 'insertHTML abc<div>def</div>',
+ '<div contenteditable>abc<div>def|</div></div>'),
+ 'displaced placeholder with "class" attribute');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/displaced-generic-placeholder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698