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

Unified Diff: chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm

Issue 12285005: Merge 182499 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 years, 10 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/cocoa/dev_tools_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm
===================================================================
--- chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm (revision 182776)
+++ chrome/browser/ui/cocoa/dev_tools_controller_browsertest.mm (working copy)
@@ -107,4 +107,10 @@
EXPECT_EQ(height - offset, NSHeight([web_view bounds]));
EXPECT_EQ(0, NSMinY([web_view bounds]));
+
+ // Update the offset and verify that the view is resized.
+ CGFloat new_offset = 25;
+ [controller() setTopContentOffset:new_offset];
+ EXPECT_EQ(height - new_offset, NSHeight([web_view bounds]));
+ EXPECT_EQ(0, NSMinY([web_view bounds]));
}
« no previous file with comments | « chrome/browser/ui/cocoa/dev_tools_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698