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

Side by Side Diff: chrome/test/data/extensions/api_test/window_open/panel/test.js

Issue 10777004: Support chrome.windows extension API events for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced 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/chrome_browser_extensions.gypi ('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 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 ]);
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698