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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/4242293-1.html

Issue 2752593006: Utilize assert_selection() in editing/pasteboard/4242293-1.html (Closed)
Patch Set: 2017-03-16T19:19:34 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/editing/pasteboard/copy_ending_at_end_of_block.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/4242293-1.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/4242293-1.html b/third_party/WebKit/LayoutTests/editing/pasteboard/4242293-1.html
deleted file mode 100644
index 7e2c4f87d2206f0458b8a039eb61428345fbf357..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/4242293-1.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-This test ensures that createMarkup puts an interchange newline on the
-pasteboard for a selection ending at the end of a block.
-
-<div id="copy" contenteditable="true"><div><div>foo</div>bar</div>baz</div>
-<div id="sample" contenteditable="true">foo</div>
-<div id="log"></div>
-<script>
-test(function() {
- if (window.internals)
- internals.settings.setEditingBehavior('win');
-
- var selection = window.getSelection();
- selection.collapse(document.getElementById('copy'), 0);
- selection.modify('move', 'forward', 'word');
- selection.modify('extend', 'forward', 'line');
- selection.modify('extend', 'forward', 'line');
- document.execCommand('copy');
-
- var sample = document.getElementById('sample');
- selection.collapse(sample, 0);
- selection.modify('move', 'forward', 'word');
- document.execCommand('paste');
-
- assert_equals(sample.innerHTML, 'foobar<br>baz');
- assert_true(selection.isCollapsed);
- assert_equals(selection.anchorNode, sample.lastChild);
- assert_equals(selection.anchorOffset, 3);
-});
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/pasteboard/copy_ending_at_end_of_block.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698