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 function checkGeometry() { | 5 function checkGeometry() { |
6 chrome.test.assertEq(113, window.screenX); | 6 chrome.test.assertEq(113, window.screenX); |
7 chrome.test.assertEq(117, window.screenY); | 7 chrome.test.assertEq(117, window.screenY); |
8 chrome.test.assertEq(314, window.innerWidth); | 8 chrome.test.assertEq(314, window.innerWidth); |
9 chrome.test.assertEq(271, window.innerHeight); | 9 chrome.test.assertEq(271, window.innerHeight); |
10 chrome.test.sendMessage('Done1'); | 10 chrome.test.sendMessage('Done1'); |
11 } | 11 } |
12 | 12 |
13 window.setTimeout(checkGeometry, 500); | 13 window.setTimeout(checkGeometry, 500); |
| 14 |
| 15 chrome.test.sendMessage('Launched'); |
OLD | NEW |