| Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| index cd9d0ce62525a15f096bd409e524a0562281a62a..974b3ce09aeea89a5fa91379bb4e2282ede434c8 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| @@ -2210,10 +2210,12 @@ TEST_F(WebViewTest, ChangeDisplayMode)
|
| URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8("display_mode.html"));
|
| WebView* webView = m_webViewHelper.initializeAndLoad(m_baseURL + "display_mode.html", true);
|
|
|
| + webView->updateAllLifecyclePhases();
|
| std::string content = WebFrameContentDumper::dumpFrameTreeAsText(webView->mainFrame()->toWebLocalFrame(), 21).utf8();
|
| EXPECT_EQ("regular-ui", content);
|
|
|
| webView->setDisplayMode(WebDisplayModeMinimalUi);
|
| + webView->updateAllLifecyclePhases();
|
| content = WebFrameContentDumper::dumpFrameTreeAsText(webView->mainFrame()->toWebLocalFrame(), 21).utf8();
|
| EXPECT_EQ("minimal-ui", content);
|
| m_webViewHelper.reset();
|
| @@ -2685,6 +2687,7 @@ TEST_F(WebViewTest, CompareSelectAllToContentAsText)
|
| std::string actual = frame->selectionAsText().utf8();
|
|
|
| const int kMaxOutputCharacters = 1024;
|
| + webView->updateAllLifecyclePhases();
|
| std::string expected = WebFrameContentDumper::dumpFrameTreeAsText(frame, kMaxOutputCharacters).utf8();
|
| EXPECT_EQ(expected, actual);
|
| }
|
|
|