| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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.chrome.browser; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import android.support.test.filters.LargeTest; | 7 import android.support.test.filters.LargeTest; |
| 8 | 8 |
| 9 import org.chromium.base.Callback; | 9 import org.chromium.base.Callback; |
| 10 import org.chromium.base.ThreadUtils; | 10 import org.chromium.base.ThreadUtils; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 loadUrl("chrome://newtab"); | 118 loadUrl("chrome://newtab"); |
| 119 loadUrl("chrome://about"); | 119 loadUrl("chrome://about"); |
| 120 assertEquals(0, mCallbackHelper.getCallCount()); | 120 assertEquals(0, mCallbackHelper.getCallCount()); |
| 121 } | 121 } |
| 122 | 122 |
| 123 /** | 123 /** |
| 124 * Tests that CopylessPaste works on pages without desired metadata. | 124 * Tests that CopylessPaste works on pages without desired metadata. |
| 125 */ | 125 */ |
| 126 @LargeTest | 126 @LargeTest |
| 127 @Feature({"CopylessPaste"}) | 127 @Feature({"CopylessPaste"}) |
| 128 @DisabledTest(message = "crbug.com/713895") |
| 128 public void testNoMeta() throws InterruptedException, TimeoutException { | 129 public void testNoMeta() throws InterruptedException, TimeoutException { |
| 129 loadUrl(mTestServer.getURL(NODATA_PAGE)); | 130 loadUrl(mTestServer.getURL(NODATA_PAGE)); |
| 130 mCallbackHelper.waitForCallback(0); | 131 mCallbackHelper.waitForCallback(0); |
| 131 assertNull(mCallbackHelper.getWebPage()); | 132 assertNull(mCallbackHelper.getWebPage()); |
| 132 } | 133 } |
| 133 | 134 |
| 134 /** | 135 /** |
| 135 * Tests that CopylessPaste works end-to-end. | 136 * Tests that CopylessPaste works end-to-end. |
| 136 */ | 137 */ |
| 137 @LargeTest | 138 @LargeTest |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 loadUrl(mTestServer.getURL(DATA_PAGE + uniqueTag)); | 179 loadUrl(mTestServer.getURL(DATA_PAGE + uniqueTag)); |
| 179 mCallbackHelper.waitForCallback(1); | 180 mCallbackHelper.waitForCallback(1); |
| 180 | 181 |
| 181 // Cache hit without entities. Shouldn't parse again. | 182 // Cache hit without entities. Shouldn't parse again. |
| 182 loadUrl(mTestServer.getURL(NODATA_PAGE + uniqueTag)); | 183 loadUrl(mTestServer.getURL(NODATA_PAGE + uniqueTag)); |
| 183 // Cache hit with entities. Shouldn't parse again. | 184 // Cache hit with entities. Shouldn't parse again. |
| 184 loadUrl(mTestServer.getURL(DATA_PAGE + uniqueTag)); | 185 loadUrl(mTestServer.getURL(DATA_PAGE + uniqueTag)); |
| 185 assertEquals(2, mCallbackHelper.getCallCount()); | 186 assertEquals(2, mCallbackHelper.getCallCount()); |
| 186 } | 187 } |
| 187 } | 188 } |
| OLD | NEW |