| 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 android.test.suitebuilder.annotation.LargeTest; | 7 import android.support.test.filters.LargeTest; |
| 8 | 8 |
| 9 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
| 10 import org.chromium.base.test.util.UrlUtils; | 10 import org.chromium.base.test.util.UrlUtils; |
| 11 import org.chromium.content.browser.test.util.DOMUtils; | 11 import org.chromium.content.browser.test.util.DOMUtils; |
| 12 import org.chromium.content_public.browser.WebContents; | 12 import org.chromium.content_public.browser.WebContents; |
| 13 import org.chromium.content_shell_apk.ContentShellTestBase; | 13 import org.chromium.content_shell_apk.ContentShellTestBase; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Integration tests for JavaScript execution. | 16 * Integration tests for JavaScript execution. |
| 17 */ | 17 */ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 for (int j = 0; j < 10; ++j) { | 40 for (int j = 0; j < 10; ++j) { |
| 41 // Start evaluation of a JavaScript script -- we don't need a re
sult. | 41 // Start evaluation of a JavaScript script -- we don't need a re
sult. |
| 42 webContents.evaluateJavaScriptForTests("foobar();", null); | 42 webContents.evaluateJavaScriptForTests("foobar();", null); |
| 43 } | 43 } |
| 44 // DOMUtils does need to evaluate a JavaScript and get its result to
get DOM bounds. | 44 // DOMUtils does need to evaluate a JavaScript and get its result to
get DOM bounds. |
| 45 assertNotNull("Failed to get bounds", | 45 assertNotNull("Failed to get bounds", |
| 46 DOMUtils.getNodeBounds(webContents, "test")); | 46 DOMUtils.getNodeBounds(webContents, "test")); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 } | 49 } |
| OLD | NEW |