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

Unified Diff: third_party/WebKit/LayoutTests/editing/inserting/insert_at_end.html

Issue 2339853002: Convert editing/inserting/insert-at-end-0[12].html to use w3c test harness (Closed)
Patch Set: 2016-09-14T15:19:59 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
Index: third_party/WebKit/LayoutTests/editing/inserting/insert_at_end.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete_br.html b/third_party/WebKit/LayoutTests/editing/inserting/insert_at_end.html
similarity index 60%
copy from third_party/WebKit/LayoutTests/editing/deleting/delete_br.html
copy to third_party/WebKit/LayoutTests/editing/inserting/insert_at_end.html
index aa9cb43fcc9efc81932d3e7b7492bebaedd04b36..dd2917e84ab880b661921cac3e7178a9b30efdad 100644
--- a/third_party/WebKit/LayoutTests/editing/deleting/delete_br.html
+++ b/third_party/WebKit/LayoutTests/editing/inserting/insert_at_end.html
@@ -7,48 +7,35 @@ test(() => assert_selection(
[
'<div contenteditable>',
'<div>one</div>',
- '|<br>',
'<div>two</div>',
+ '|<br>',
'</div>',
].join(''),
- 'delete',
+ 'insertText abc',
[
'<div contenteditable>',
- '<div>one|</div>',
+ '<div>one</div>',
'<div>two</div>',
+ 'abc|',
'</div>',
].join('')),
- '1 Delete BR after caret');
+ 'insertText at end before BR');
test(() => assert_selection(
[
'<div contenteditable>',
'<div>one</div>',
- '<br>',
- '<div>|two</div>',
+ '<div>two</div>',
+ '|<br>\n',
'</div>',
].join(''),
- 'delete',
- [
- '<div contenteditable>',
- '<div>one</div>',
- '<div>|two</div>',
- '</div>',
- ].join('')),
- '2 Delete BR before caret');
-
-test(() => assert_selection(
+ 'insertText abc',
[
'<div contenteditable>',
'<div>one</div>',
- '<div>|two</div>',
- '</div>',
- ].join(''),
- 'delete',
- [
- '<div contenteditable>',
- '<div>one|two</div>',
+ '<div>two</div>',
+ 'abc|\n',
'</div>',
].join('')),
- '3 Delete across DIVs');
+ 'insertText at end before newline');
</script>

Powered by Google App Engine
This is Rietveld 408576698