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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.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/iterators/CharacterIteratorTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.cpp b/third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.cpp
index a5e54ed9e9ac9361d92d28f95592e5dd34648347..ffba4aa4a404c647be85dd6d5c6989bcf21bdf54 100644
--- a/third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/CharacterIteratorTest.cpp
@@ -61,8 +61,8 @@ TEST_F(CharacterIteratorTest, CollapsedSubrange) {
Node* textNode = document().getElementById("div")->lastChild();
Range* entireRange = Range::create(document(), textNode, 1, textNode, 4);
- EXPECT_EQ(1, entireRange->startOffset());
- EXPECT_EQ(4, entireRange->endOffset());
+ EXPECT_EQ(1u, entireRange->startOffset());
+ EXPECT_EQ(4u, entireRange->endOffset());
const EphemeralRange& result =
calculateCharacterSubrange(EphemeralRange(entireRange), 2, 0);

Powered by Google App Engine
This is Rietveld 408576698