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

Unified Diff: ash/wm/panels/panel_window_resizer_unittest.cc

Issue 17673004: Insert panel icons on the left of other panel icons. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix test assertions. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/panels/panel_window_resizer_unittest.cc
diff --git a/ash/wm/panels/panel_window_resizer_unittest.cc b/ash/wm/panels/panel_window_resizer_unittest.cc
index a0d493e32c61ac230e7a1753197075848adfc2ab..9515375ce05374bc8fe68cf10a868acdd7fd2dd4 100644
--- a/ash/wm/panels/panel_window_resizer_unittest.cc
+++ b/ash/wm/panels/panel_window_resizer_unittest.cc
@@ -157,14 +157,14 @@ class PanelWindowResizerTest : public test::AshTestBase {
scoped_ptr<aura::Window> w2(CreatePanelWindow(bounds));
std::vector<aura::Window*> window_order_original;
std::vector<aura::Window*> window_order_swapped;
- window_order_original.push_back(w1.get());
window_order_original.push_back(w2.get());
- window_order_swapped.push_back(w2.get());
+ window_order_original.push_back(w1.get());
window_order_swapped.push_back(w1.get());
+ window_order_swapped.push_back(w2.get());
TestWindowOrder(window_order_original);
- // Drag window #2 to the beginning of the shelf.
- DragStart(w2.get());
+ // Drag window #1 to the beginning of the shelf.
+ DragStart(w1.get());
DragMove(400 * dx, 400 * dy);
TestWindowOrder(window_order_swapped);
DragEnd();
@@ -172,8 +172,8 @@ class PanelWindowResizerTest : public test::AshTestBase {
// Expect swapped window order.
TestWindowOrder(window_order_swapped);
- // Drag window #2 back to the end.
- DragStart(w2.get());
+ // Drag window #1 back to the end.
+ DragStart(w1.get());
DragMove(-400 * dx, -400 * dy);
TestWindowOrder(window_order_original);
DragEnd();

Powered by Google App Engine
This is Rietveld 408576698