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

Side by Side Diff: chrome/test/data/extensions/platform_apps/windows_api_bounds/background.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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/open_link/main.js ('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')
Property Changes:
Added: svn:mergeinfo
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 chrome.app.window.create("main.html", function(win){ 6 chrome.app.window.create("main.html", function(win){
8 // Make sure we get back a bounds and that it isn't all 0's. 7 // Make sure we get back a bounds and that it isn't all 0's.
9 var bounds = win.getBounds(); 8 var bounds = win.getBounds();
10 if (!bounds || 9 if (!bounds ||
11 (bounds.top == 0 && bounds.left == 0 && 10 (bounds.top == 0 && bounds.left == 0 &&
12 bounds.width == 0 && bounds.height == 0)) { 11 bounds.width == 0 && bounds.height == 0)) {
13 console.error("invalid bounds after app.window.create:" + 12 console.error("invalid bounds after app.window.create:" +
14 JSON.stringify(bounds)); 13 JSON.stringify(bounds));
15 win.close(); 14 win.close();
16 window.close(); 15 window.close();
17 } else { 16 } else {
18 chrome.test.sendMessage("background_ok"); 17 chrome.test.sendMessage("background_ok");
19 } 18 }
20 }); 19 });
21 }); 20 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/open_link/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698