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

Unified Diff: LayoutTests/editing/selection/extend-by-word-002.html

Issue 26315006: Avoid creating first-letter RenderTextFragments for unsuitable text nodes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to ToT again. Created 7 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 | « no previous file | LayoutTests/editing/selection/extend-by-word-002-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/selection/extend-by-word-002.html
diff --git a/LayoutTests/editing/selection/extend-by-word-002.html b/LayoutTests/editing/selection/extend-by-word-002.html
index d963877f12a56aad86dfc1906b2aaf0024832c0e..1259c57f58da1f9ff2f7d6674ba51b5389adbf5a 100644
--- a/LayoutTests/editing/selection/extend-by-word-002.html
+++ b/LayoutTests/editing/selection/extend-by-word-002.html
@@ -62,10 +62,10 @@ selection.addRange(range);
for (var i = 0; i < 6; ++i)
selection.modify('extend', 'forward', 'word');
shouldBeEqualToString('selection.type', 'Range');
-shouldBe('selection.anchorNode', '$("test").querySelectorAll("li")[0].childNodes[1].firstChild');
+shouldBe('selection.anchorNode', '$("test").querySelectorAll("li")[0].childNodes[0]');
shouldBe('selection.anchorOffset', '0');
shouldBe('selection.focusNode', '$("test").querySelectorAll("li a")[3].firstChild');
-shouldBe('selection.focusOffset', '5');
+shouldBe('selection.focusOffset', '4');
if (window.testRunner)
$('container').outerHTML = '';
</script>
« no previous file with comments | « no previous file | LayoutTests/editing/selection/extend-by-word-002-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698