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/selection/character-data-mutation.html

Issue 2680943004: Make FrameSelection to hold non-canonicalized positions (Closed)
Patch Set: 2014-02-14T23:34:22 Update TestExpectation to include extend-{0,2,4}0.html and selectAllChildren.html Created 3 years, 10 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/selection/character-data-mutation.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/character-data-mutation.html b/third_party/WebKit/LayoutTests/editing/selection/character-data-mutation.html
index 02f0f0a2eed9e1495500da03164c83b9591ca10f..9d6495861cb44c7fea85c7ce26eb9e14c8a779e5 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/character-data-mutation.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/character-data-mutation.html
@@ -17,7 +17,7 @@ function test_selection(sample, closure, expected, description) {
test_selection(
'<div contenteditable><span>he^llo</span> wo|rld</div>',
selection => selection.document.querySelector('span').remove(),
- '<div contenteditable>^ wo|rld</div>',
+ '<div contenteditable> ^wo|rld</div>',
'Remove the parent of startContainer');
// set nodeValue
@@ -30,7 +30,7 @@ test_selection(
test_selection(
'<div contenteditable><span>he^llo</span> wo|rld</div>',
selection => selection.document.querySelector('div').lastChild.nodeValue = 'a',
- '<div contenteditable><span>he^llo</span>|a</div>',
+ '<div contenteditable><span>he^llo|</span>a</div>',
'Replace nodeValue of endContainer');
// appendData
@@ -75,7 +75,7 @@ test_selection(
test_selection(
'<div contenteditable><span>he^llo</span> wo|rld</div>',
selection => selection.document.querySelector('span').firstChild.deleteData(1, 4),
- '<div contenteditable><span>h^</span> wo|rld</div>',
+ '<div contenteditable><span>h</span>^ wo|rld</div>',
'deleteData(1, 4) in startContainer');
test_selection(
@@ -93,7 +93,7 @@ test_selection(
test_selection(
'<div contenteditable><span>he^llo</span> wo|rld</div>',
selection => selection.document.querySelector('div').lastChild.deleteData(0, 3),
- '<div contenteditable><span>he^llo</span>|rld</div>',
+ '<div contenteditable><span>he^llo|</span>rld</div>',
'deleteData(0, 3) in endContainer');
test_selection(

Powered by Google App Engine
This is Rietveld 408576698