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

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

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another merge before retrying commit. Created 8 years, 4 months 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/windows_api/manifest.json ('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')
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 var callbackPass = chrome.test.callbackPass; 5 var callbackPass = chrome.test.callbackPass;
6 6
7 chrome.experimental.app.onLaunched.addListener(function() { 7 chrome.app.runtime.onLaunched.addListener(function() {
8 chrome.test.runTests([ 8 chrome.test.runTests([
9 function testCreateWindow() { 9 function testCreateWindow() {
10 chrome.app.window.create('test.html', {}, callbackPass(function (win) { 10 chrome.app.window.create('test.html', {}, callbackPass(function (win) {
11 chrome.test.assertTrue(typeof win.window === 'object'); 11 chrome.test.assertTrue(typeof win.window === 'object');
12 chrome.test.assertEq('about:blank', win.location.href); 12 chrome.test.assertEq('about:blank', win.location.href);
13 chrome.test.assertEq('<html><head></head><body></body></html>', 13 chrome.test.assertEq('<html><head></head><body></body></html>',
14 win.document.documentElement.outerHTML); 14 win.document.documentElement.outerHTML);
15 })) 15 }))
16 }, 16 },
17 17
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 chrome.test.assertEq(oldHeight, win.innerHeight); 60 chrome.test.assertEq(oldHeight, win.innerHeight);
61 }); 61 });
62 }) 62 })
63 win.chrome.app.window.restore(); 63 win.chrome.app.window.restore();
64 }); 64 });
65 win.chrome.app.window.maximize(); 65 win.chrome.app.window.maximize();
66 })); 66 }));
67 },*/ 67 },*/
68 ]); 68 ]);
69 }); 69 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/windows_api/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698