OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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.test.suitebuilder.annotation.SmallTest; |
8 import android.test.TouchUtils; | 8 import android.test.TouchUtils; |
9 import android.view.KeyEvent; | 9 import android.view.KeyEvent; |
10 | 10 |
11 import org.chromium.android_webview.test.util.VideoTestWebServer; | 11 import org.chromium.android_webview.test.util.VideoTestWebServer; |
12 import org.chromium.base.test.util.DisabledTest; | 12 import org.chromium.base.test.util.DisabledTest; |
13 import org.chromium.base.test.util.Feature; | 13 import org.chromium.base.test.util.Feature; |
14 | 14 |
15 /** | 15 /** |
16 * Test WebChromeClient::onShow/HideCustomView. | 16 * Test WebChromeClient::onShow/HideCustomView. |
17 */ | 17 */ |
18 public class AwContentsClientFullScreenVideoTest extends AndroidWebViewTestBase
{ | 18 public class AwContentsClientFullScreenVideoTest extends AwTestBase { |
19 | 19 |
20 /* | 20 /* |
21 * @Feature({"AndroidWebView"}) | 21 * @Feature({"AndroidWebView"}) |
22 * @SmallTest | 22 * @SmallTest |
23 * http://crbug.com/180575 | 23 * http://crbug.com/180575 |
24 */ | 24 */ |
25 @DisabledTest | 25 @DisabledTest |
26 public void testOnShowAndHideCustomView() throws Throwable { | 26 public void testOnShowAndHideCustomView() throws Throwable { |
27 FullScreenVideoTestAwContentsClient contentsClient = | 27 FullScreenVideoTestAwContentsClient contentsClient = |
28 new FullScreenVideoTestAwContentsClient(getActivity()); | 28 new FullScreenVideoTestAwContentsClient(getActivity()); |
(...skipping 10 matching lines...) Expand all Loading... |
39 TouchUtils.clickView(AwContentsClientFullScreenVideoTest.this, testC
ontainerView); | 39 TouchUtils.clickView(AwContentsClientFullScreenVideoTest.this, testC
ontainerView); |
40 contentsClient.waitForCustomViewShown(); | 40 contentsClient.waitForCustomViewShown(); |
41 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); | 41 getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); |
42 contentsClient.waitForCustomViewHidden(); | 42 contentsClient.waitForCustomViewHidden(); |
43 } | 43 } |
44 finally { | 44 finally { |
45 if (webServer != null) webServer.getTestWebServer().shutdown(); | 45 if (webServer != null) webServer.getTestWebServer().shutdown(); |
46 } | 46 } |
47 } | 47 } |
48 } | 48 } |
OLD | NEW |