Index: Source/web/tests/WebFrameTest.cpp |
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp |
index 0aff89cd3852d81b7ee3cc3806ee06ecfc121a19..a2c17d639b883e0325c166ce5b9758c67c8ba2f7 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 = WebCore::Length(100, WebCore::Fixed); |
webViewImpl()->updatePageDefinedPageScaleConstraints(arguments); |
bool multiplierCheckedAtLeastOnce = false; |