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

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

Issue 2701413003: Range: node offsets should be unsigned. (Closed)
Patch Set: Resolve std::numeric_limits<int>::max() leftover Created 3 years, 10 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/InputMethodControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp b/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
index af4913f8026b15cf7dc9fdb0f1393e7f3ac4e5c8..11eca71312aadefe3c1a0616166e393b34ee4a80 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
@@ -175,8 +175,8 @@ TEST_F(InputMethodControllerTest, SetCompositionFromExistingText) {
controller().setCompositionFromExistingText(underlines, 0, 5);
Range* range = controller().compositionRange();
- EXPECT_EQ(0, range->startOffset());
- EXPECT_EQ(5, range->endOffset());
+ EXPECT_EQ(0u, range->startOffset());
+ EXPECT_EQ(5u, range->endOffset());
PlainTextRange plainTextRange(PlainTextRange::create(*div, *range));
EXPECT_EQ(0u, plainTextRange.start());
@@ -384,8 +384,8 @@ TEST_F(InputMethodControllerTest,
controller().setCompositionFromExistingText(underlines, 0, 5);
Range* range = controller().compositionRange();
- EXPECT_EQ(1, range->startOffset());
- EXPECT_EQ(6, range->endOffset());
+ EXPECT_EQ(1u, range->startOffset());
+ EXPECT_EQ(6u, range->endOffset());
PlainTextRange plainTextRange(PlainTextRange::create(*div, *range));
EXPECT_EQ(0u, plainTextRange.start());

Powered by Google App Engine
This is Rietveld 408576698