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

Unified Diff: ash/wm/dock/docked_window_resizer_unittest.cc

Issue 134603003: Resizes all docked windows that are flush with the docked edge in sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@panels
Patch Set: Resizes all docked windows that are flush with thedocked edge in sync Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/dock/docked_window_resizer_unittest.cc
diff --git a/ash/wm/dock/docked_window_resizer_unittest.cc b/ash/wm/dock/docked_window_resizer_unittest.cc
index 0e395d502f80f510e8640087689f1dec4ec1b33d..e765ca1722bb6a64ad60ef91fa50a27038eeaa95 100644
--- a/ash/wm/dock/docked_window_resizer_unittest.cc
+++ b/ash/wm/dock/docked_window_resizer_unittest.cc
@@ -1212,10 +1212,10 @@ TEST_P(DockedWindowResizerTest, ResizeTwoWindows) {
HTLEFT));
DragMove(-kResizeSpan1, 0);
DragEnd();
- // Only w2 should get wider since w1 was resized by a user.
+ // w2 should get wider since it was resized by a user.
EXPECT_EQ(previous_width + kResizeSpan1, w2->bounds().width());
- // w1 should stays same size as before since it was resized by a user.
- EXPECT_EQ(previous_width, w1->bounds().width());
+ // w1 should stay as wide as w2 since both were flush with the dock edge.
+ EXPECT_EQ(w2->bounds().width(), w1->bounds().width());
EXPECT_EQ(w2->bounds().width(), docked_width(manager));
// Undock w2 and then dock it back.
« ash/wm/dock/docked_window_layout_manager.cc ('K') | « ash/wm/dock/docked_window_layout_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698