| 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 15bc88c85202ec923338404a80bdce30a33a1bf1..811dc98397d3349b6fdc21b1ee805cedcdcb7c4f 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| @@ -78,6 +78,7 @@
|
| #include "public/web/WebElement.h"
|
| #include "public/web/WebFrame.h"
|
| #include "public/web/WebFrameClient.h"
|
| +#include "public/web/WebFrameContentDumper.h"
|
| #include "public/web/WebHitTestResult.h"
|
| #include "public/web/WebInputEvent.h"
|
| #include "public/web/WebScriptSource.h"
|
| @@ -2225,11 +2226,11 @@ 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);
|
|
|
| - std::string content = webView->mainFrame()->contentAsText(21).utf8();
|
| + std::string content = WebFrameContentDumper::dumpFrameTreeAsText(webView->mainFrame()->toWebLocalFrame(), 21).utf8();
|
| EXPECT_EQ("regular-ui", content);
|
|
|
| webView->setDisplayMode(WebDisplayModeMinimalUi);
|
| - content = webView->mainFrame()->contentAsText(21).utf8();
|
| + content = WebFrameContentDumper::dumpFrameTreeAsText(webView->mainFrame()->toWebLocalFrame(), 21).utf8();
|
| EXPECT_EQ("minimal-ui", content);
|
| m_webViewHelper.reset();
|
| }
|
| @@ -2700,7 +2701,7 @@ TEST_F(WebViewTest, CompareSelectAllToContentAsText)
|
| std::string actual = frame->selectionAsText().utf8();
|
|
|
| const int kMaxOutputCharacters = 1024;
|
| - std::string expected = frame->contentAsText(kMaxOutputCharacters).utf8();
|
| + std::string expected = WebFrameContentDumper::dumpFrameTreeAsText(frame, kMaxOutputCharacters).utf8();
|
| EXPECT_EQ(expected, actual);
|
| }
|
|
|
|
|