OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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.android_webview.test; | 5 package org.chromium.android_webview.test; |
6 | 6 |
7 import android.test.suitebuilder.annotation.SmallTest; | 7 import android.support.test.filters.SmallTest; |
8 import android.view.View; | 8 import android.view.View; |
9 | 9 |
10 import org.chromium.android_webview.AwContents; | 10 import org.chromium.android_webview.AwContents; |
11 import org.chromium.base.test.util.CallbackHelper; | 11 import org.chromium.base.test.util.CallbackHelper; |
12 import org.chromium.base.test.util.Feature; | 12 import org.chromium.base.test.util.Feature; |
13 import org.chromium.content.browser.test.util.DOMUtils; | 13 import org.chromium.content.browser.test.util.DOMUtils; |
14 | 14 |
15 import java.util.concurrent.TimeUnit; | 15 import java.util.concurrent.TimeUnit; |
16 import java.util.concurrent.TimeoutException; | 16 import java.util.concurrent.TimeoutException; |
17 | 17 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 awContents.getSettings().setFullscreenSupported(true); | 70 awContents.getSettings().setFullscreenSupported(true); |
71 enableJavaScriptOnUiThread(awContents); | 71 enableJavaScriptOnUiThread(awContents); |
72 loadUrlSync(awContents, contentsClient.getOnPageFinishedHelper(), VIDEO_
TEST_URL); | 72 loadUrlSync(awContents, contentsClient.getOnPageFinishedHelper(), VIDEO_
TEST_URL); |
73 Thread.sleep(5 * 1000); | 73 Thread.sleep(5 * 1000); |
74 DOMUtils.clickNode(this, awContents.getContentViewCore(), CUSTOM_FULLSCR
EEN_CONTROL_ID); | 74 DOMUtils.clickNode(this, awContents.getContentViewCore(), CUSTOM_FULLSCR
EEN_CONTROL_ID); |
75 Thread.sleep(1 * 1000); | 75 Thread.sleep(1 * 1000); |
76 DOMUtils.clickNode(this, awContents.getContentViewCore(), CUSTOM_PLAY_CO
NTROL_ID); | 76 DOMUtils.clickNode(this, awContents.getContentViewCore(), CUSTOM_PLAY_CO
NTROL_ID); |
77 waitForViewAttached(); | 77 waitForViewAttached(); |
78 } | 78 } |
79 } | 79 } |
OLD | NEW |