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

Side by Side Diff: ash/wm/panels/panel_layout_manager_unittest.cc

Issue 23874013: Remove old activation code and disable-focus-controller flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/panels/panel_layout_manager.h" 5 #include "ash/wm/panels/panel_layout_manager.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/launcher/launcher.h" 8 #include "ash/launcher/launcher.h"
9 #include "ash/launcher/launcher_button.h" 9 #include "ash/launcher/launcher_button.h"
10 #include "ash/launcher/launcher_model.h" 10 #include "ash/launcher/launcher_model.h"
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 wm::ActivateWindow(w1.get()); 439 wm::ActivateWindow(w1.get());
440 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w1.get())); 440 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w1.get()));
441 wm::ActivateWindow(w2.get()); 441 wm::ActivateWindow(w2.get());
442 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w2.get())); 442 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w2.get()));
443 wm::ActivateWindow(w3.get()); 443 wm::ActivateWindow(w3.get());
444 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w3.get())); 444 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w3.get()));
445 wm::ActivateWindow(w4.get()); 445 wm::ActivateWindow(w4.get());
446 wm::ActivateWindow(w3.get()); 446 wm::ActivateWindow(w3.get());
447 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w3.get())); 447 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w3.get()));
448 w3.reset(); 448 w3.reset();
449 if (views::corewm::UseFocusController()) 449 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w2.get()));
450 EXPECT_NO_FATAL_FAILURE(IsCalloutAboveLauncherIcon(w2.get()));
451 } 450 }
452 451
453 // Tests removing panels. 452 // Tests removing panels.
454 TEST_F(PanelLayoutManagerTest, RemoveLeftPanel) { 453 TEST_F(PanelLayoutManagerTest, RemoveLeftPanel) {
455 gfx::Rect bounds(0, 0, 201, 201); 454 gfx::Rect bounds(0, 0, 201, 201);
456 scoped_ptr<aura::Window> w1(CreatePanelWindow(bounds)); 455 scoped_ptr<aura::Window> w1(CreatePanelWindow(bounds));
457 scoped_ptr<aura::Window> w2(CreatePanelWindow(bounds)); 456 scoped_ptr<aura::Window> w2(CreatePanelWindow(bounds));
458 scoped_ptr<aura::Window> w3(CreatePanelWindow(bounds)); 457 scoped_ptr<aura::Window> w3(CreatePanelWindow(bounds));
459 458
460 // At this point, windows should be stacked with 1 < 2 < 3 459 // At this point, windows should be stacked with 1 < 2 < 3
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 EXPECT_TRUE(w1->IsVisible()); 775 EXPECT_TRUE(w1->IsVisible());
777 EXPECT_FALSE(w2->IsVisible()); 776 EXPECT_FALSE(w2->IsVisible());
778 EXPECT_TRUE(w3->IsVisible()); 777 EXPECT_TRUE(w3->IsVisible());
779 } 778 }
780 779
781 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelLayoutManagerTextDirectionTest, 780 INSTANTIATE_TEST_CASE_P(LtrRtl, PanelLayoutManagerTextDirectionTest,
782 testing::Bool()); 781 testing::Bool());
783 782
784 } // namespace internal 783 } // namespace internal
785 } // namespace ash 784 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698