- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / platform_apps / url_handlers / launchers / call_mismatching_window_open / main.js
1 // Copyright 2013 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.
4
5 chrome.test.getConfig(function(config) {
6   var port = config ? config.testServer.port : '0';
7   var href =
8       'http://localhost:' + port +
9       '/extensions/platform_apps/url_handlers/common/mismatching_target.html';
10   // This click should be intercepted and redirected to the handler app
11   // (pre-installed by the CPP side of the test before launching this).
12   window.open(href);
13
14   chrome.test.sendMessage("Launcher done");
15 });