[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / outer_bounds / test.js
blob331d2b118a69e9ae5c7c6f4f2236c0ee4d227a8a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 chrome.app.runtime.onLaunched.addListener(function() {
6 chrome.test.sendMessage('Launched', function (response) {
7 var frameType = response == 'color' ? { color: '#ff0000' } : response;
8 chrome.app.window.create('main.html', {
9 frame: frameType,
10 outerBounds: {
11 left: 10,
12 top: 11,
13 width: 300,
14 height: 301,
15 minWidth: 200,
16 minHeight: 201,
17 maxWidth: 400,
18 maxHeight: 401
20 }, function () {
21 // Send this again as the test is waiting for the window to be ready.
22 chrome.test.sendMessage('Launched');
23 });
24 });
25 });