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

Side by Side Diff: chrome/test/data/extensions/platform_apps/geometry/test.js

Issue 11299326: Revert 170660 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698