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

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

Issue 2773573002: window.open() should gate new tab/new popup based on toolbar visibility. (Closed)
Patch Set: buttons Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp b/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
index 183cf872178873643a847f96eea8451bde9b721f..541701d9a16bee15608b4ad12a89785d2f342f13 100644
--- a/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp
@@ -87,7 +87,7 @@ class GetNavigationPolicyTest : public testing::Test {
WebInputEvent::TimeStampForTesting);
event.button = button;
setCurrentInputEventForTest(&event);
- m_chromeClientImpl->setScrollbarsVisible(!asPopup);
+ m_chromeClientImpl->setToolbarsVisible(!asPopup);
m_chromeClientImpl->show(NavigationPolicyIgnore);
setCurrentInputEventForTest(0);
return m_result;
@@ -211,23 +211,23 @@ TEST_F(GetNavigationPolicyTest, NoToolbarsForcesPopup) {
EXPECT_FALSE(isNavigationPolicyPopup());
}
-TEST_F(GetNavigationPolicyTest, NoStatusbarForcesPopup) {
+TEST_F(GetNavigationPolicyTest, NoStatusbarIsNotPopup) {
m_chromeClientImpl->setStatusbarVisible(false);
- EXPECT_TRUE(isNavigationPolicyPopup());
+ EXPECT_FALSE(isNavigationPolicyPopup());
m_chromeClientImpl->setStatusbarVisible(true);
EXPECT_FALSE(isNavigationPolicyPopup());
}
-TEST_F(GetNavigationPolicyTest, NoMenubarForcesPopup) {
+TEST_F(GetNavigationPolicyTest, NoMenubarIsNotPopup) {
m_chromeClientImpl->setMenubarVisible(false);
- EXPECT_TRUE(isNavigationPolicyPopup());
+ EXPECT_FALSE(isNavigationPolicyPopup());
m_chromeClientImpl->setMenubarVisible(true);
EXPECT_FALSE(isNavigationPolicyPopup());
}
-TEST_F(GetNavigationPolicyTest, NotResizableForcesPopup) {
+TEST_F(GetNavigationPolicyTest, NotResizableIsNotPopup) {
m_chromeClientImpl->setResizable(false);
- EXPECT_TRUE(isNavigationPolicyPopup());
+ EXPECT_FALSE(isNavigationPolicyPopup());
m_chromeClientImpl->setResizable(true);
EXPECT_FALSE(isNavigationPolicyPopup());
}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698