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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html

Issue 2320533002: Restore a collapsed leading space of text used for line break (Closed)
Patch Set: Refactoring 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/restore-collapsed-space-for-copy.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html b/third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html
deleted file mode 100644
index 160aa235b740084a6c6b14632cadfa7462be56bd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/preserve-trailing-space.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!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 style="width: 10em;">Copy this area <a href="http://foo/">AVeryLongWordThatWillWrap</a></div><div contenteditable>|</div>',
- selection => {
- selection.setClipboardData('Copy this area <a href="http://foo/">AVeryLongWordThatWillWrap</a>');
- selection.document.execCommand('paste');
- },
- '<div style="width: 10em;">Copy this area <a href="http://foo/">AVeryLongWordThatWillWrap</a></div><div contenteditable>Copy this area <a href="http://foo/">AVeryLongWordThatWillWrap|</a></div>'),
- '1. Restore the collapsed space');
-
-test(() => assert_selection(
- '<div style="width: 2em;"><b><i>foo </i></b>bar</div><div contenteditable>|</div>',
- selection => {
- selection.setClipboardData('<b><i>foo </i></b>bar');
- selection.document.execCommand('paste');
- },
- '<div style="width: 2em;"><b><i>foo </i></b>bar</div><div contenteditable><b><i>foo </i></b>bar|</div>'),
- '2. Restore the collapsed space');
-
-test(() => assert_selection(
- '<div style="width: 2em;">작은홍띠점박이푸른부전나비</div><div contenteditable>|</div>',
- selection => {
- selection.setClipboardData('작은홍띠점박이푸른부전나비');
- selection.document.execCommand('paste');
- },
- '<div style="width: 2em;">작은홍띠점박이푸른부전나비</div><div contenteditable>작은홍띠점박이푸른부전나비|</div>'),
- '3. Space should not be added for CJK');
-
-test(() => assert_selection(
- '<div style="width: 2em; word-break: break-all">Pneumonoultramicroscopicsilicovolcanoconiosis</div><div contenteditable>|</div>',
- selection => {
- selection.setClipboardData('Pneumonoultramicroscopicsilicovolcanoconiosis');
- selection.document.execCommand('paste');
- },
- '<div style="width: 2em; word-break: break-all">Pneumonoultramicroscopicsilicovolcanoconiosis</div><div contenteditable>Pneumonoultramicroscopicsilicovolcanoconiosis|</div>'),
- '4. Space should not be added for CSS word-break: break-all');
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/restore-collapsed-space-for-copy.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698