| Index: Source/core/html/HTMLTextFormControlElementTest.cpp
|
| diff --git a/Source/core/html/HTMLTextFormControlElementTest.cpp b/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| index 9feac4b65437b595df95f181906f86766a717b22..064396204b0d06b9df7c3355895dbf9d084be491 100644
|
| --- a/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| +++ b/Source/core/html/HTMLTextFormControlElementTest.cpp
|
| @@ -94,16 +94,16 @@ void HTMLTextFormControlElementTest::forceLayoutFlag()
|
|
|
| TEST_F(HTMLTextFormControlElementTest, SetSelectionRange)
|
| {
|
| - EXPECT_EQ(0, textControl().selectionStart());
|
| - EXPECT_EQ(0, textControl().selectionEnd());
|
| + EXPECT_EQ(0u, textControl().selectionStart());
|
| + EXPECT_EQ(0u, textControl().selectionEnd());
|
|
|
| textControl().setInnerEditorValue("Hello, text form.");
|
| - EXPECT_EQ(0, textControl().selectionStart());
|
| - EXPECT_EQ(0, textControl().selectionEnd());
|
| + EXPECT_EQ(0u, textControl().selectionStart());
|
| + EXPECT_EQ(0u, textControl().selectionEnd());
|
|
|
| textControl().setSelectionRange(1, 3);
|
| - EXPECT_EQ(1, textControl().selectionStart());
|
| - EXPECT_EQ(3, textControl().selectionEnd());
|
| + EXPECT_EQ(1u, textControl().selectionStart());
|
| + EXPECT_EQ(3u, textControl().selectionEnd());
|
| }
|
|
|
| TEST_F(HTMLTextFormControlElementTest, SetSelectionRangeDoesNotCauseLayout)
|
| @@ -214,7 +214,7 @@ TEST_F(HTMLTextFormControlElementTest, SpellCheckDoesNotCauseUpdateLayout)
|
| Position newPosition(input->innerEditorElement()->firstChild(), 3);
|
| VisibleSelection newSelection(newPosition, DOWNSTREAM);
|
| document().frame()->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotUpdateAppearance);
|
| - ASSERT_EQ(3, input->selectionStart());
|
| + ASSERT_EQ(3u, input->selectionStart());
|
|
|
| OwnPtrWillBePersistent<SpellChecker> spellChecker(SpellChecker::create(page().frame()));
|
| forceLayoutFlag();
|
|
|