OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/editing/FrameSelection.h" | 5 #include "core/editing/FrameSelection.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
10 #include "core/dom/Text.h" | 10 #include "core/dom/Text.h" |
11 #include "core/editing/EditingTestBase.h" | 11 #include "core/editing/EditingTestBase.h" |
12 #include "core/editing/FrameCaret.h" | 12 #include "core/editing/FrameCaret.h" |
13 #include "core/editing/SelectionController.h" | 13 #include "core/editing/SelectionController.h" |
14 #include "core/frame/FrameView.h" | 14 #include "core/frame/FrameView.h" |
15 #include "core/html/HTMLBodyElement.h" | 15 #include "core/html/HTMLBodyElement.h" |
16 #include "core/input/EventHandler.h" | 16 #include "core/input/EventHandler.h" |
17 #include "core/layout/LayoutView.h" | |
18 #include "core/paint/PaintInfo.h" | 17 #include "core/paint/PaintInfo.h" |
19 #include "core/paint/PaintLayer.h" | 18 #include "core/paint/PaintLayer.h" |
20 #include "core/testing/DummyPageHolder.h" | 19 #include "core/testing/DummyPageHolder.h" |
21 #include "platform/graphics/paint/DrawingRecorder.h" | 20 #include "platform/graphics/paint/DrawingRecorder.h" |
22 #include "platform/graphics/paint/PaintController.h" | 21 #include "platform/graphics/paint/PaintController.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
24 #include "wtf/PassRefPtr.h" | 23 #include "wtf/PassRefPtr.h" |
25 #include "wtf/RefPtr.h" | 24 #include "wtf/RefPtr.h" |
26 #include "wtf/StdLibExtras.h" | 25 #include "wtf/StdLibExtras.h" |
27 #include <memory> | 26 #include <memory> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 selection().updateIfNeeded(); | 322 selection().updateIfNeeded(); |
324 | 323 |
325 // TODO(yosin): Once lazy canonicalization implemented, selection.start | 324 // TODO(yosin): Once lazy canonicalization implemented, selection.start |
326 // should be Position(HTML, 0). | 325 // should be Position(HTML, 0). |
327 EXPECT_EQ(Position(), selection().start()) | 326 EXPECT_EQ(Position(), selection().start()) |
328 << "updateIfNeeded() makes selection to null."; | 327 << "updateIfNeeded() makes selection to null."; |
329 EXPECT_EQ(selection().start(), caretPosition().position()); | 328 EXPECT_EQ(selection().start(), caretPosition().position()); |
330 } | 329 } |
331 | 330 |
332 } // namespace blink | 331 } // namespace blink |
OLD | NEW |