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

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

Issue 2062133005: Add a (disabled) test to demonstrate child frame creation race. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actually disable the test 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/app_window_send_message/main.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "apps/launcher.h" 9 #include "apps/launcher.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1378
1379 // Now check that the app window's default zoom, and actual zoom level, 1379 // Now check that the app window's default zoom, and actual zoom level,
1380 // have not been changed from the default. 1380 // have not been changed from the default.
1381 WebContents* web_contents = GetFirstAppWindowWebContents(); 1381 WebContents* web_contents = GetFirstAppWindowWebContents();
1382 content::HostZoomMap* app_host_zoom_map = content::HostZoomMap::Get( 1382 content::HostZoomMap* app_host_zoom_map = content::HostZoomMap::Get(
1383 web_contents->GetSiteInstance()); 1383 web_contents->GetSiteInstance());
1384 EXPECT_EQ(0, app_host_zoom_map->GetDefaultZoomLevel()); 1384 EXPECT_EQ(0, app_host_zoom_map->GetDefaultZoomLevel());
1385 EXPECT_EQ(0, app_host_zoom_map->GetZoomLevel(web_contents)); 1385 EXPECT_EQ(0, app_host_zoom_map->GetZoomLevel(web_contents));
1386 } 1386 }
1387 1387
1388 // This test will flake until we fix the underlying issue:
1389 // https://crbug.com/620194.
1390 #define MAYBE_AppWindowIframe DISABLED_AppWindowIframe
1391 // Sends chrome.test.sendMessage from chrome.app.window.create's callback.
1392 // The app window also adds an <iframe> to the page during window.onload.
1393 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_AppWindowIframe) {
1394 LoadAndLaunchPlatformApp("app_window_send_message",
1395 "APP_WINDOW_CREATE_CALLBACK");
1396 }
1397
1388 } // namespace extensions 1398 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/app_window_send_message/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698