| 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 chrome.test.runTests([ | 5 chrome.test.runTests([ |
| 6 function openPanel() { | 6 function openPanel() { |
| 7 chrome.test.listenOnce(chrome.windows.onCreated, function(window) { |
| 8 chrome.test.assertTrue(window.width > 0); |
| 9 chrome.test.assertTrue(window.height > 0); |
| 10 chrome.test.assertEq("panel", window.type); |
| 11 chrome.test.assertTrue(!window.incognito); |
| 12 }); |
| 7 chrome.windows.create( | 13 chrome.windows.create( |
| 8 { 'url': 'about:blank', 'type': 'panel' }, | 14 { 'url': 'about:blank', 'type': 'panel' }, |
| 9 chrome.test.callbackPass(function(win) { | 15 chrome.test.callbackPass(function(win) { |
| 10 chrome.test.assertEq('panel', win.type); | 16 chrome.test.assertEq('panel', win.type); |
| 11 chrome.test.assertEq(true, win.alwaysOnTop); | 17 chrome.test.assertEq(true, win.alwaysOnTop); |
| 12 })); | 18 })); |
| 13 } | 19 } |
| 14 ]); | 20 ]); |
| OLD | NEW |