- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / app_background_page / no_js / launch.html
1 <!--
2  * Copyright (c) 2012 The Chromium Authors. All rights reserved.  Use of this
3  * source code is governed by a BSD-style license that can be found in the
4  * LICENSE file.
5 -->
6 <script src="../common/common.js"></script>
7 <div style="display:none" id="pageToScriptTunnel"></div>
8 <div style="display:none" id="scriptToPageTunnel"></div>
9 <script>
10
11 window.onload = function() {
12   setupScriptTunnel();
13   var backgroundWindow = window.open('bg.html', 'bg', 'background');
14   if (backgroundWindow) {
15     notifyBackgroundWindowNotNull();
16   }
17 }
18
19 function notifyBackgroundWindowNotNull() {
20   pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
21   pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
22 }
23 </script>