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

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

Issue 2953193002: Move ContentsSize and HasVisibleContent methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: . Created 3 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/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 435cc451e7589db8f2d7d199993aa8d21c90961b..c5dbde6134be02567cccc92eafea698284fffb42 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -8507,7 +8507,7 @@ TEST_P(ParameterizedWebFrameTest, HasVisibleContentOnVisibleFrames) {
web_view_helper.InitializeAndLoad(base_url_ + "visible_frames.html");
for (WebFrame* frame = web_view_impl->MainFrameImpl()->TraverseNext(); frame;
frame = frame->TraverseNext()) {
- EXPECT_TRUE(frame->HasVisibleContent());
+ EXPECT_TRUE(frame->ToWebLocalFrame()->HasVisibleContent());
}
}
@@ -8518,7 +8518,7 @@ TEST_P(ParameterizedWebFrameTest, HasVisibleContentOnHiddenFrames) {
web_view_helper.InitializeAndLoad(base_url_ + "hidden_frames.html");
for (WebFrame* frame = web_view_impl->MainFrameImpl()->TraverseNext(); frame;
frame = frame->TraverseNext()) {
- EXPECT_FALSE(frame->HasVisibleContent());
+ EXPECT_FALSE(frame->ToWebLocalFrame()->HasVisibleContent());
}
}

Powered by Google App Engine
This is Rietveld 408576698