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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index 99d47f4cd6c7be3d340950327b8cd8f4a0547252..9f6befd03f7efa48ad4afbd58182eceea07aba55 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -404,7 +404,7 @@ TEST_F(WebViewTest, SetBaseBackgroundColorBeforeMainFrame)
{
const WebColor kBlue = 0xFF0000FF;
FrameTestHelpers::TestWebViewClient webViewClient;
- WebViewImpl* webView = WebViewImpl::create(&webViewClient);
+ WebViewImpl* webView = WebViewImpl::create(&webViewClient, WebPageVisibilityStateVisible);
EXPECT_NE(kBlue, webView->backgroundColor());
// webView does not have a frame yet, but we should still be able to set the background color.
webView->setBaseBackgroundColor(kBlue);
@@ -1462,7 +1462,7 @@ TEST_F(WebViewTest, ClientTapHandling)
TEST_F(WebViewTest, ClientTapHandlingNullWebViewClient)
{
- WebViewImpl* webView = WebViewImpl::create(nullptr);
+ WebViewImpl* webView = WebViewImpl::create(nullptr, WebPageVisibilityStateVisible);
WebLocalFrame* localFrame = WebLocalFrame::create(WebTreeScopeType::Document, nullptr);
webView->setMainFrame(localFrame);
WebGestureEvent event;
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698