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
3 // found in the LICENSE file.
5 chrome
.test
.sendMessage('Launched');
7 chrome
.test
.getConfig(function(config
) {
8 var linkNode
= document
.getElementById('test-link');
9 linkNode
.href
= 'http://localhost:' + config
.testServer
.port
+
10 '/extensions/platform_apps/open_link/link.html';
12 var clickEvent
= document
.createEvent('MouseEvents');
13 clickEvent
.initMouseEvent('click', true, true, window
,
14 0, 0, 0, 0, 0, false, false,
15 false, false, 0, null);
16 linkNode
.dispatchEvent(clickEvent
);
19 onmessage = function() {
20 chrome
.test
.sendMessage('Link opened');