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

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

Issue 2900553005: Treat selection as focused if it contains focused element (Closed)
Patch Set: Mon May 22 18:52:27 PDT 2017 Created 3 years, 7 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/FrameSelectionTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
index 76d0f6d8cd54a03ebf0e37edde875111ac69cf04..0cc7e19026e8252cc2cb129812c511c1d36c8652 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp
@@ -883,7 +883,7 @@ TEST_F(FrameSelectionTest, RangeContainsFocus) {
Element* const alink = GetDocument().getElementById("alink");
alink->focus();
EXPECT_TRUE(Selection().GetSelectionInDOMTree().IsRange());
- EXPECT_FALSE(Selection().SelectionHasFocus());
+ EXPECT_TRUE(Selection().SelectionHasFocus());
EXPECT_FALSE(Selection().IsHidden()); // Range still visible.
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/editing/Position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698