| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 chrome.app.runtime.onLaunched.addListener(function() { | 5 chrome.app.runtime.onLaunched.addListener(function() { |
| 6 chrome.test.sendMessage('Launched'); | |
| 7 | |
| 8 var win1; | 6 var win1; |
| 9 chrome.app.window.create('empty.html', | 7 chrome.app.window.create('empty.html', |
| 10 { id: 'test', | 8 { id: 'test', |
| 11 left: 113, top: 117, width: 314, height: 271, | 9 left: 113, top: 117, width: 314, height: 271, |
| 12 frame: 'none' }, function(win) { | 10 frame: 'none' }, function(win) { |
| 13 win1 = win; | 11 win1 = win; |
| 14 | 12 |
| 15 var bounds = win.getBounds(); | 13 var bounds = win.getBounds(); |
| 16 | 14 |
| 17 // TODO(jeremya): convert to use getBounds() once | 15 // TODO(jeremya): convert to use getBounds() once |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 chrome.test.assertEq(137, bounds.left); | 34 chrome.test.assertEq(137, bounds.left); |
| 37 chrome.test.assertEq(143, bounds.top); | 35 chrome.test.assertEq(143, bounds.top); |
| 38 chrome.test.assertEq(203, bounds.width); | 36 chrome.test.assertEq(203, bounds.width); |
| 39 chrome.test.assertEq(187, bounds.height); | 37 chrome.test.assertEq(187, bounds.height); |
| 40 chrome.test.sendMessage('Done2'); | 38 chrome.test.sendMessage('Done2'); |
| 41 win.close() | 39 win.close() |
| 42 window.close(); | 40 window.close(); |
| 43 }); | 41 }); |
| 44 }); | 42 }); |
| 45 }); | 43 }); |
| OLD | NEW |