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

Unified Diff: chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc

Issue 10409016: Makes the touch tabstrip scroll so that tabs opened in the background (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc
diff --git a/chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc b/chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc
index 9f369b204e57224cd3d4787edc6ba2785cbcad5a..c990d8a06dfcb1c66c3ab3742c18cca3a5000f30 100644
--- a/chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc
+++ b/chrome/browser/ui/views/tabs/touch_tab_strip_layout_unittest.cc
@@ -232,6 +232,16 @@ TEST_F(TouchTabStripLayoutTest, AddTab) {
bool add_active;
bool add_mini;
} test_data[] = {
+ // Adding a background tab test cases.
+ { { 0, 300, 100, -10, 2, 0, 1, "0 90 180 198 200", "0 16 106 196 198 200"},
+ 3, false, false },
+ { { 0, 300, 100, -10, 2, 0, 1, "0 90 180 198 200", "0 2 4 20 110 200"},
+ 5, false, false },
+ { { 0, 300, 100, -10, 2, 0, 1, "0 90 180 198 200", "0 90 180 196 198 200"},
+ 2, false, false },
+ { { 0, 300, 100, -10, 2, 0, 1, "0 90 180 198 200", "0 2 4 94 184 200"},
+ 0, false, false },
+
{ { 4, 200, 100, -10, 2, 1, 2, "0 4 10 100", "0 0 8 10 100"},
1, false, true },
{ { 4, 200, 100, -10, 2, 1, 2, "0 4 10 100", "0 0 8 98 100"},
« no previous file with comments | « chrome/browser/ui/views/tabs/touch_tab_strip_layout.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698