| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |