OLD | NEW |
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 "ash/common/devtools/ash_devtools_css_agent.h" | 5 #include "ash/devtools/ash_devtools_css_agent.h" |
6 #include "ash/common/devtools/ash_devtools_dom_agent.h" | 6 #include "ash/devtools/ash_devtools_dom_agent.h" |
7 #include "ash/common/test/ash_test.h" | |
8 #include "ash/common/wm_shell.h" | |
9 #include "ash/common/wm_window.h" | |
10 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 8 #include "ash/test/ash_test.h" |
| 9 #include "ash/wm_shell.h" |
| 10 #include "ash/wm_window.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "ui/display/display.h" | 13 #include "ui/display/display.h" |
14 #include "ui/views/background.h" | 14 #include "ui/views/background.h" |
15 #include "ui/views/widget/native_widget_private.h" | 15 #include "ui/views/widget/native_widget_private.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 namespace ash { | 18 namespace ash { |
19 namespace { | 19 namespace { |
20 using namespace ui::devtools::protocol; | 20 using namespace ui::devtools::protocol; |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 EXPECT_EQ(gfx::Rect(25, 35, 45, 20), root_view->bounds()); // Not changed | 756 EXPECT_EQ(gfx::Rect(25, 35, 45, 20), root_view->bounds()); // Not changed |
757 | 757 |
758 SetStyleTexts(root_view_node, "\nheight: 73;\n ", true); | 758 SetStyleTexts(root_view_node, "\nheight: 73;\n ", true); |
759 EXPECT_EQ(gfx::Rect(25, 35, 45, 73), root_view->bounds()); | 759 EXPECT_EQ(gfx::Rect(25, 35, 45, 73), root_view->bounds()); |
760 | 760 |
761 SetStyleTexts(root_view_node, "\nx: 10; y: 23; width: 52;\n ", true); | 761 SetStyleTexts(root_view_node, "\nx: 10; y: 23; width: 52;\n ", true); |
762 EXPECT_EQ(gfx::Rect(10, 23, 52, 73), root_view->bounds()); | 762 EXPECT_EQ(gfx::Rect(10, 23, 52, 73), root_view->bounds()); |
763 } | 763 } |
764 | 764 |
765 } // namespace ash | 765 } // namespace ash |
OLD | NEW |