| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; | 7 import static org.chromium.base.test.util.ScalableTimeout.scaleTimeout; |
| 8 | 8 |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.net.Uri; | 10 import android.net.Uri; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 OnPageFinishedHelper onPageFinishedHelper = | 138 OnPageFinishedHelper onPageFinishedHelper = |
| 139 callbackHelperContainer.getOnPageFinishedHelper(); | 139 callbackHelperContainer.getOnPageFinishedHelper(); |
| 140 int currentCallCount = onPageFinishedHelper.getCallCount(); | 140 int currentCallCount = onPageFinishedHelper.getCallCount(); |
| 141 | 141 |
| 142 DOMUtils.clickNode(getContentViewCore(), id); | 142 DOMUtils.clickNode(getContentViewCore(), id); |
| 143 | 143 |
| 144 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_S
ECONDS, | 144 onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_S
ECONDS, |
| 145 TimeUnit.SECONDS); | 145 TimeUnit.SECONDS); |
| 146 getInstrumentation().waitForIdleSync(); | 146 getInstrumentation().waitForIdleSync(); |
| 147 } | 147 } |
| 148 } | 148 } |
| OLD | NEW |