| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |