| Index: trunk/src/chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/navigate.js
|
| ===================================================================
|
| --- trunk/src/chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/navigate.js (revision 222256)
|
| +++ trunk/src/chrome/test/data/extensions/platform_apps/url_handlers/launching_pages/navigate.js (working copy)
|
| @@ -1,35 +0,0 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -(function() {
|
| - var target_dir = '/extensions/platform_apps/url_handlers/common/';
|
| - var link = document.getElementById('link');
|
| - var mismatching_link = document.getElementById('mismatching_link');
|
| -
|
| - if (link || mismatching_link) {
|
| - var clickEvent = document.createEvent('MouseEvents');
|
| - clickEvent.initMouseEvent('click', true, true, window,
|
| - 0, 0, 0, 0, 0, false, false,
|
| - false, false, 0, null);
|
| - if (link) {
|
| - console.log("Clicking a matching link");
|
| - link.href = target_dir + 'target.html';
|
| - // This click should open the handler app (pre-installed in the browser by
|
| - // the CPP test before launching this) with link.href.
|
| - link.dispatchEvent(clickEvent);
|
| - }
|
| -
|
| - if (mismatching_link) {
|
| - console.log("Clicking a mismatching link");
|
| - mismatching_link.href = target_dir + 'mismatching_target.html';
|
| - // This click should NOT open the handler app, because the URL does not
|
| - // match the url_handlers of the app. It should open the link in a new
|
| - // tab instead.
|
| - mismatching_link.dispatchEvent(clickEvent);
|
| - }
|
| - } else {
|
| - console.log("Calling window.open()");
|
| - window.open(target_dir + 'target.html');
|
| - }
|
| -})();
|
|
|