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

Side by Side Diff: chrome/browser/apps/web_view_browsertest.cc

Issue 624063002: <webview>: resizing with display:none set should resize on attachment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/path_service.h" 5 #include "base/path_service.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/apps/app_browsertest_util.h" 8 #include "chrome/browser/apps/app_browsertest_util.h"
9 #include "chrome/browser/chrome_content_browser_client.h" 9 #include "chrome/browser/chrome_content_browser_client.h"
10 #include "chrome/browser/prerender/prerender_link_manager.h" 10 #include "chrome/browser/prerender/prerender_link_manager.h"
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 "web_view/shim", 1203 "web_view/shim",
1204 NO_TEST_SERVER); 1204 NO_TEST_SERVER);
1205 } 1205 }
1206 1206
1207 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestNavigationToExternalProtocol) { 1207 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestNavigationToExternalProtocol) {
1208 TestHelper("testNavigationToExternalProtocol", 1208 TestHelper("testNavigationToExternalProtocol",
1209 "web_view/shim", 1209 "web_view/shim",
1210 NO_TEST_SERVER); 1210 NO_TEST_SERVER);
1211 } 1211 }
1212 1212
1213 IN_PROC_BROWSER_TEST_F(WebViewTest,
1214 Shim_TestResizeWebviewWithDisplayNoneResizesContent) {
1215 TestHelper("testResizeWebviewWithDisplayNoneResizesContent",
1216 "web_view/shim",
1217 NO_TEST_SERVER);
1218 }
1219
1213 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestResizeWebviewResizesContent) { 1220 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestResizeWebviewResizesContent) {
1214 TestHelper("testResizeWebviewResizesContent", 1221 TestHelper("testResizeWebviewResizesContent",
1215 "web_view/shim", 1222 "web_view/shim",
1216 NO_TEST_SERVER); 1223 NO_TEST_SERVER);
1217 } 1224 }
1218 1225
1219 // This test makes sure we do not crash if app is closed while interstitial 1226 // This test makes sure we do not crash if app is closed while interstitial
1220 // page is being shown in guest. 1227 // page is being shown in guest.
1221 // Disabled under LeakSanitizer due to memory leaks. http://crbug.com/321662 1228 // Disabled under LeakSanitizer due to memory leaks. http://crbug.com/321662
1222 #if defined(LEAK_SANITIZER) 1229 #if defined(LEAK_SANITIZER)
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 // http://crbug.com/403325 2315 // http://crbug.com/403325
2309 #define MAYBE_WebViewInBackgroundPage \ 2316 #define MAYBE_WebViewInBackgroundPage \
2310 DISABLED_WebViewInBackgroundPage 2317 DISABLED_WebViewInBackgroundPage
2311 #else 2318 #else
2312 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage 2319 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage
2313 #endif 2320 #endif
2314 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { 2321 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
2315 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) 2322 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
2316 << message_; 2323 << message_;
2317 } 2324 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698