Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lazyboy/chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
Istiaque Ahmed committed Apr 15, 2013
2 parents 7b433ca + b8ff168 commit cbced19
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/chrome-apps/dimension/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Chrome apps sample.
15 changes: 15 additions & 0 deletions tests/chrome-apps/dimension/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--
* Copyright 2013 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
-->
<html>
<head>
</head>
<body>
<div>
Hello world
</div>
<div style="width: 800px; background-color: green; min-height: 200px;">Green background</div>
</body>
</html>
13 changes: 13 additions & 0 deletions tests/chrome-apps/dimension/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"manifest_version": 2,
"name": "Dimension check",
"version": "1",
"minimum_chrome_version": "23",
"permissions": [
],
"app": {
"background": {
"scripts": ["test.js"]
}
}
}
10 changes: 10 additions & 0 deletions tests/chrome-apps/dimension/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Listens for the app launching then creates the window
*
* @see http://developer.chrome.com/trunk/apps/app.runtime.html
* @see http://developer.chrome.com/trunk/apps/app.window.html
*/
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html',
{width: 500, height: 400, id: 'create-app-window-option-id'});
});

0 comments on commit cbced19

Please sign in to comment.