Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 0aff89cd3852d81b7ee3cc3806ee06ecfc121a19..9fa23c70903da1d26cd6a75c838f6b50db0bb7d4 100644 |
--- a/Source/web/tests/WebFrameTest.cpp |
+++ b/Source/web/tests/WebFrameTest.cpp |
@@ -371,7 +371,8 @@ TEST_F(WebFrameTest, ChangeInFixedLayoutTriggersTextAutosizingRecalculate) |
EXPECT_TRUE(multiplierSetAtLeastOnce); |
WebCore::ViewportArguments arguments = document->viewportArguments(); |
- arguments.width += 10; |
+ // Choose a width that's not going match the viewport width of the loaded document. |
+ arguments.minWidth = arguments.maxWidth = 100; |
webViewImpl()->updatePageDefinedPageScaleConstraints(arguments); |
bool multiplierCheckedAtLeastOnce = false; |