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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/after-removing-textarea.html

Issue 2441363002: Convert editing/selection/5497643.html to use assert_selection() (Closed)
Patch Set: 2016-10-24T18:04:56 Created 4 years, 2 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 | « third_party/WebKit/LayoutTests/editing/selection/5497643.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/selection/after-removing-textarea.html
diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert_div_before_br_at_end.html b/third_party/WebKit/LayoutTests/editing/selection/after-removing-textarea.html
similarity index 50%
copy from third_party/WebKit/LayoutTests/editing/inserting/insert_div_before_br_at_end.html
copy to third_party/WebKit/LayoutTests/editing/selection/after-removing-textarea.html
index 6bad94e6c7cc93619966fb9c4f5fab10ffe50067..ade69d899f534ca283c7647fdbe024c37bb475e0 100644
--- a/third_party/WebKit/LayoutTests/editing/inserting/insert_div_before_br_at_end.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/after-removing-textarea.html
@@ -1,11 +1,13 @@
-<!doctype html>
+<!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>one\u{00A0}|<br></div>',
- 'insertHTML two<div>three</div>',
- '<div contenteditable>one two<div>three|</div></div>'),
- 'insert DIV before BR at end');
+ 'before<textarea>|</textarea>after',
+ selection => {
+ selection.document.querySelector('textarea').remove();
+ },
+ 'before|after'),
+ 'We should have caret after removing TEXTAREA');
</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/editing/selection/5497643.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698