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

Side by Side Diff: chrome/test/data/extensions/api_test/window_update/sizing/test.html

Issue 7003063: Enforce different min size for popups than tabbed browsers on MacOSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address prev round of feedback Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 var pass = chrome.test.callbackPass; 2 var pass = chrome.test.callbackPass;
3 3
4 var finalTop = 400; 4 var finalTop = 400;
5 var finalLeft = 10; 5 var finalLeft = 10;
6 var finalWidth = 176 6 var finalWidth = 476
7 var finalHeight = 201; 7 var finalHeight = 301;
8 8
9 var chromeWindow = null; 9 var chromeWindow = null;
10 10
11 function checkTop(currentWindow) { 11 function checkTop(currentWindow) {
12 chrome.test.assertEq(finalTop, currentWindow.top); 12 chrome.test.assertEq(finalTop, currentWindow.top);
13 } 13 }
14 14
15 function checkHeightAndContinue(currentWindow) { 15 function checkHeightAndContinue(currentWindow) {
16 chrome.test.assertEq(finalHeight, currentWindow.height); 16 chrome.test.assertEq(finalHeight, currentWindow.height);
17 chrome.windows.update( 17 chrome.windows.update(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 pass(function(currentWindow) { 49 pass(function(currentWindow) {
50 chromeWindow = currentWindow; 50 chromeWindow = currentWindow;
51 chrome.tabs.create( 51 chrome.tabs.create(
52 { 'windowId': currentWindow.id, 'url': 'blank.html' }, 52 { 'windowId': currentWindow.id, 'url': 'blank.html' },
53 pass(updateLeftAndContinue) 53 pass(updateLeftAndContinue)
54 ); 54 );
55 })); 55 }));
56 }, 56 },
57 ]); 57 ]);
58 </script> 58 </script>
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698