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

Unified Diff: chrome/test/data/chromedriver/test_app/background.js

Issue 1196663005: [chromedriver] When launching a Chrome App, automatically switch to the new window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add copyright message to test app background.js Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/test/run_py_tests.py ('k') | chrome/test/data/chromedriver/test_app/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/chromedriver/test_app/background.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/dom_storage_isolation/main.js b/chrome/test/data/chromedriver/test_app/background.js
similarity index 71%
copy from chrome/test/data/extensions/platform_apps/web_view/dom_storage_isolation/main.js
copy to chrome/test/data/chromedriver/test_app/background.js
index 393037c6b7952c9d1c474c84f891423fab1fec90..7d921052f95c40baefb612f18f133f39c5ecf275 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/dom_storage_isolation/main.js
+++ b/chrome/test/data/chromedriver/test_app/background.js
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function createWindow() {
+chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
'bounds': {
'width': 400,
- 'height': 400
+ 'height': 500
}
});
-}
-chrome.app.runtime.onLaunched.addListener(createWindow);
+});
« no previous file with comments | « chrome/test/chromedriver/test/run_py_tests.py ('k') | chrome/test/data/chromedriver/test_app/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698