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

Unified Diff: remoting/webapp/browser_test/scrollbar_browser_test.js

Issue 1130013003: Replace moveTo and resizeTo with outerBounds= (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified. Created 5 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 | « remoting/webapp/base/js/base.js ('k') | remoting/webapp/js_proto/chrome_proto.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_test/scrollbar_browser_test.js
diff --git a/remoting/webapp/browser_test/scrollbar_browser_test.js b/remoting/webapp/browser_test/scrollbar_browser_test.js
index 98ca55560c57179634b2e5aa660b2fbc4f641372..533e6691fac4b0d32a47d5a579ad9a9e82c48d0e 100644
--- a/remoting/webapp/browser_test/scrollbar_browser_test.js
+++ b/remoting/webapp/browser_test/scrollbar_browser_test.js
@@ -181,7 +181,8 @@ browserTest.Scrollbars.prototype.verifyScrollbarState_ =
*/
browserTest.Scrollbars.prototype.resize_ = function(width, height) {
var win = chrome.app.window.current();
- win.resizeTo(width, height);
+ win.outerBounds.width = width;
+ win.outerBounds.height = height;
// Chrome takes a while to update the scroll-bars, so don't resolve
// immediately. Waiting for the onBoundsChanged event would be cleaner,
// but isn't reliable.
« no previous file with comments | « remoting/webapp/base/js/base.js ('k') | remoting/webapp/js_proto/chrome_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698