Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientGetVideoLoadingProgressViewTest.java

Issue 2583933003: Replace deprecated Android java test annotations (Closed)
Patch Set: Rebase again :( Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698