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

Unified Diff: third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp

Issue 2925063002: ALL-IN-ONE: Refactor ComputeInlineBoxPosition() (Closed)
Patch Set: 2017-06-08T19:15:47 Created 3 years, 6 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/Source/core/editing/VisibleUnitsTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
index 8795eb6b3f8b2a76961c3df53c7a35e9cb522301..1c85cc2f47e1fa9ecbaba813e0bb9e07d2920b28 100644
--- a/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp
@@ -303,9 +303,7 @@ TEST_F(VisibleUnitsTest, ComputeInlineBoxPositionMixedEditable) {
Position::LastPositionInNode(sample), TextAffinity::kDownstream);
// Should not be in infinite-loop
EXPECT_EQ(nullptr, actual.inline_box);
- // TODO(editing-dev): We should return 0 for |InlineBoxPosition| when
- // |inline_box| is null.
- EXPECT_EQ(2, actual.offset_in_box);
Xiaocheng 2017/06/08 21:34:12 This is behavioral change.
yosin_UTC9 2017/06/09 01:55:55 This comes from here: ORIGINAL: inline_box
+ EXPECT_EQ(0, actual.offset_in_box);
}
TEST_F(VisibleUnitsTest, endOfDocument) {

Powered by Google App Engine
This is Rietveld 408576698