OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. Use of | 1 // Copyright 2017 The Chromium Authors. All rights reserved. Use of |
2 // this source code is governed by a BSD-style license that can be | 2 // 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/markers/SpellCheckMarkerListImpl.h" | 5 #include "core/editing/markers/SpellCheckMarkerListImpl.h" |
6 | 6 |
7 #include "core/editing/markers/SpellingMarker.h" | 7 #include "core/editing/markers/SpellingMarker.h" |
8 #include "core/editing/markers/SpellingMarkerListImpl.h" | 8 #include "core/editing/markers/SpellingMarkerListImpl.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 {"word", "word2"}); | 150 {"word", "word2"}); |
151 EXPECT_EQ(2u, marker_list_->GetMarkers().size()); | 151 EXPECT_EQ(2u, marker_list_->GetMarkers().size()); |
152 | 152 |
153 EXPECT_EQ(0u, marker_list_->GetMarkers()[0]->StartOffset()); | 153 EXPECT_EQ(0u, marker_list_->GetMarkers()[0]->StartOffset()); |
154 EXPECT_EQ(3u, marker_list_->GetMarkers()[0]->EndOffset()); | 154 EXPECT_EQ(3u, marker_list_->GetMarkers()[0]->EndOffset()); |
155 | 155 |
156 EXPECT_EQ(9u, marker_list_->GetMarkers()[1]->StartOffset()); | 156 EXPECT_EQ(9u, marker_list_->GetMarkers()[1]->StartOffset()); |
157 EXPECT_EQ(14u, marker_list_->GetMarkers()[1]->EndOffset()); | 157 EXPECT_EQ(14u, marker_list_->GetMarkers()[1]->EndOffset()); |
158 } | 158 } |
159 | 159 |
160 } // namespace | 160 } // namespace blink |
OLD | NEW |