| Index: chrome/test/data/navigation_interception/navigation_from_image_onload.html
|
| diff --git a/chrome/test/data/navigation_interception/navigation_from_user_gesture.html b/chrome/test/data/navigation_interception/navigation_from_image_onload.html
|
| similarity index 66%
|
| copy from chrome/test/data/navigation_interception/navigation_from_user_gesture.html
|
| copy to chrome/test/data/navigation_interception/navigation_from_image_onload.html
|
| index 885df973d0ba02cb64c9450c2f792372261707bc..6d053f5271515df4509c2433c73a357395573655 100644
|
| --- a/chrome/test/data/navigation_interception/navigation_from_user_gesture.html
|
| +++ b/chrome/test/data/navigation_interception/navigation_from_image_onload.html
|
| @@ -2,7 +2,7 @@
|
| <html>
|
| <!--
|
|
|
| -Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +Copyright 2015 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.
|
|
|
| @@ -21,13 +21,18 @@ found in the LICENSE file.
|
| }
|
| </style>
|
| <script>
|
| - function openHello(e) {
|
| - window.location = 'hello.html';
|
| + function pingAndOpenHello(e) {
|
| + var img = new Image();
|
| + img.onload = function () {
|
| + window.location = 'hello.html';
|
| + }
|
| + img.src = '../image_search/valid.png';
|
| +
|
| e.preventDefault();
|
| };
|
|
|
| function setup() {
|
| - first.ontouchstart = openHello;
|
| + first.ontouchstart = pingAndOpenHello;
|
| };
|
| </script>
|
| </head>
|
|
|