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

Side by Side Diff: chrome/browser/site_per_process_interactive_browsertest.cc

Issue 2341123002: Disable SitePerProcessInteractiveBrowserTest.FullscreenElementInSubframe. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.h"
9 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h" 9 #include "chrome/browser/ui/exclusive_access/fullscreen_controller_test.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } // namespace 381 } // namespace
382 382
383 // Check that an element in a cross-process subframe can enter and exit 383 // Check that an element in a cross-process subframe can enter and exit
384 // fullscreen. The test will verify that: 384 // fullscreen. The test will verify that:
385 // - the subframe is properly resized 385 // - the subframe is properly resized
386 // - the WebContents properly enters/exits fullscreen. 386 // - the WebContents properly enters/exits fullscreen.
387 // - document.webkitFullscreenElement is correctly updated in both frames. 387 // - document.webkitFullscreenElement is correctly updated in both frames.
388 // - fullscreenchange events fire in both frames. 388 // - fullscreenchange events fire in both frames.
389 // - fullscreen CSS is applied correctly in both frames. 389 // - fullscreen CSS is applied correctly in both frames.
390 IN_PROC_BROWSER_TEST_F(SitePerProcessInteractiveBrowserTest, 390 IN_PROC_BROWSER_TEST_F(SitePerProcessInteractiveBrowserTest,
391 FullscreenElementInSubframe) { 391 DISABLED_FullscreenElementInSubframe) {
392 // Start on a page with one subframe (id "child-0") that has 392 // Start on a page with one subframe (id "child-0") that has
393 // "allowfullscreen" enabled. 393 // "allowfullscreen" enabled.
394 GURL main_url(embedded_test_server()->GetURL( 394 GURL main_url(embedded_test_server()->GetURL(
395 "a.com", "/page_with_allowfullscreen_frame.html")); 395 "a.com", "/page_with_allowfullscreen_frame.html"));
396 ui_test_utils::NavigateToURL(browser(), main_url); 396 ui_test_utils::NavigateToURL(browser(), main_url);
397 content::WebContents* web_contents = 397 content::WebContents* web_contents =
398 browser()->tab_strip_model()->GetActiveWebContents(); 398 browser()->tab_strip_model()->GetActiveWebContents();
399 399
400 // Navigate the subframe cross-site to a page with a fullscreenable <div>. 400 // Navigate the subframe cross-site to a page with a fullscreenable <div>.
401 GURL frame_url( 401 GURL frame_url(
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 "document.pointerLockElement)", 763 "document.pointerLockElement)",
764 &mouse_locked)); 764 &mouse_locked));
765 EXPECT_TRUE(mouse_locked); 765 EXPECT_TRUE(mouse_locked);
766 EXPECT_TRUE(main_frame->GetView()->IsMouseLocked()); 766 EXPECT_TRUE(main_frame->GetView()->IsMouseLocked());
767 767
768 EXPECT_TRUE(ExecuteScript(main_frame, 768 EXPECT_TRUE(ExecuteScript(main_frame,
769 "document.querySelector('iframe').parentNode." 769 "document.querySelector('iframe').parentNode."
770 "removeChild(document.querySelector('iframe'))")); 770 "removeChild(document.querySelector('iframe'))"));
771 EXPECT_FALSE(main_frame->GetView()->IsMouseLocked()); 771 EXPECT_FALSE(main_frame->GetView()->IsMouseLocked());
772 } 772 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698