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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/cut-paste-formatting-tag.html

Issue 2229703004: Keep formatting tags included when it is cut or copied. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove editor variable in test case 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/pasteboard/cut-paste-formatting-tag.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/cut-paste-formatting-tag.html b/third_party/WebKit/LayoutTests/editing/pasteboard/cut-paste-formatting-tag.html
new file mode 100644
index 0000000000000000000000000000000000000000..b937e3b1ace88dc6aeb4e64d789b1ed7d293fc3c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/cut-paste-formatting-tag.html
@@ -0,0 +1,16 @@
+<!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 style="width: 300px; height: 250px; border: 1px solid black"><div><b>^<br></b></div><b>foo|</b></div>',
+ selection => {
+ selection.document.execCommand('cut');
+ selection.document.execCommand('paste');
+ },
+ '<div contenteditable style="width: 300px; height: 250px; border: 1px solid black"><br><div><b>foo|</b></div></div>'),
+ 'Cut all tags and paste them');
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698