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/execCommand/insertNewLineInQuotedContent-outside-quote.html

Issue 2750533007: Let insertNewLineInQuotedContent not do anything out of a quote element (Closed)
Patch Set: update Created 3 years, 9 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/fast/events/scoped/editing-commands.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/execCommand/insertNewLineInQuotedContent-outside-quote.html
diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/insertNewLineInQuotedContent-outside-quote.html b/third_party/WebKit/LayoutTests/editing/execCommand/insertNewLineInQuotedContent-outside-quote.html
new file mode 100644
index 0000000000000000000000000000000000000000..cbcdee14df77cf48a55f95518aa8c5cf805357e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/insertNewLineInQuotedContent-outside-quote.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(
+ '^foo<svg></svg>|',
+ selection => {
+ const document = selection.document;
+ document.designMode = 'on';
+ document.execCommand('InsertNewlineInQuotedContent');
+ },
+ '^foo|<svg></svg>');
+}, 'InsertNewlineInQuotedContent outside of quote element should not do nothing');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/scoped/editing-commands.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698