Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 9d4971d0a10b89d8c4bf6670c6f089e4d937bba3..e6f1df996b909f16bb2c4f9f297ce68434f1205f 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -2876,7 +2876,7 @@ |
EXPECT_TRUE(needAnimation); |
// The edit box should be left aligned with a margin for possible label. |
int hScroll = editBoxWithText.x - leftBoxRatio * viewportWidth / scale; |
- EXPECT_NEAR(hScroll, scroll.x(), 5); |
+ EXPECT_NEAR(hScroll, scroll.x(), 1); |
int vScroll = editBoxWithText.y - (viewportHeight / scale - editBoxWithText.height) / 2; |
EXPECT_NEAR(vScroll, scroll.y(), 1); |
EXPECT_NEAR(minReadableCaretHeight / caret.height, scale, 0.1); |