Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp

Issue 2036403002: Always use the WebFrameWidget when attaching the root graphics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
index 7f1ffe7bdb4a25b2c30a1331189ea63864997872..71af8a435ef59dee6007019bb61944de5ef6dcdd 100644
--- a/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp
@@ -437,6 +437,8 @@ TEST(RemoteFrameThrottlingTest, ThrottledLocalRoot)
WebFrameOwnerProperties properties;
WebRemoteFrame* rootFrame = webView->mainFrame()->toWebRemoteFrame();
WebLocalFrame* localFrame = FrameTestHelpers::createLocalChild(rootFrame);
+ FrameTestHelpers::TestWebWidgetClient widgetClient;
+ WebWidget* widget = WebFrameWidget::create(&widgetClient, localFrame);
WebString baseURL("http://internal.test/");
URLTestHelpers::registerMockedURLFromBaseURL(baseURL, "simple_div.html");
@@ -466,6 +468,7 @@ TEST(RemoteFrameThrottlingTest, ThrottledLocalRoot)
frameView->updateAllLifecyclePhases();
testing::runPendingTasks();
EXPECT_EQ(DocumentLifecycle::VisualUpdatePending, frameDocument->lifecycle().state());
+ widget->close();
webView->close();
}

Powered by Google App Engine
This is Rietveld 408576698