| Index: third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| index a0749aea8499222f4b201071312f0ea85302318f..e5e13b0e99c469b8e4185a2418c124bb3eaaf2aa 100644
|
| --- a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
|
| @@ -266,14 +266,17 @@
|
| EXPECT_EQ(Position(document().body(), 0), selection().start());
|
| EXPECT_EQ(selection().start(), caretPosition().position());
|
| document().body()->remove();
|
| - EXPECT_EQ(Position(), selection().start())
|
| - << "Selection has been removed by BODY.remove().";
|
| + // TODO(yosin): Once lazy canonicalization implemented, selection.start
|
| + // should be Position(HTML, 0).
|
| + EXPECT_EQ(Position(document().documentElement(), 1), selection().start());
|
| EXPECT_EQ(selection().start(), caretPosition().position());
|
| document().updateStyleAndLayout();
|
| selection().updateIfNeeded();
|
|
|
| + // TODO(yosin): Once lazy canonicalization implemented, selection.start
|
| + // should be Position(HTML, 0).
|
| EXPECT_EQ(Position(), selection().start())
|
| - << "selection().updateIfNeeded() does nothing.";
|
| + << "updateIfNeeded() makes selection to null.";
|
| EXPECT_EQ(selection().start(), caretPosition().position());
|
| }
|
|
|
|
|