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

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

Issue 10291002: Fix crash in touch layout code. Without this can end up indexing into (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 a93bcac43240eba885f5f0c67d086c96cefbf69c..c0a359ba13fabd9067050a3c74e7c2c4d4ce5511 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
@@ -323,6 +323,9 @@ TEST_F(TouchTabStripLayoutTest, SetWidth) {
CommonTestData common_data;
int new_width;
} test_data[] = {
+ // Verifies a bug in AdjustTrailingStackedTabs().
+ { { 0, 103, 100, -10, 2, 0, 0, "", "0 2"}, 102 },
+
{ { 8, 250, 100, -10, 2, 2, 2, "0 4 8 98 148 150", "0 4 8 98 160 250"},
350 },
{ { 8, 250, 100, -10, 2, 2, 2, "0 4 8 98 148 150", "0 4 8 96 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