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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java

Issue 2229353003: Clean up document-mode specific UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused fields. Created 4 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java
index dbcb7b59f6c8b9d50a2d77e8c8b44f94cc30d496..9ae7227b8579c3ec001cf0eacf9eeb83c178d4d7 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/media/remote/CastSwitchVideoTest.java
@@ -11,7 +11,6 @@ import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.FlakyTest;
import org.chromium.chrome.browser.tab.Tab;
-import org.chromium.chrome.browser.util.FeatureUtilities;
import org.chromium.content.browser.test.util.DOMUtils;
import org.chromium.content_public.browser.WebContents;
@@ -28,8 +27,6 @@ public class CastSwitchVideoTest extends CastTestBase {
@LargeTest
@DisableIf.Build(hardware_is = "flo", message = "https://crbug.com/623526")
public void testPlayNewVideoInNewTab() throws InterruptedException, TimeoutException {
- // This won't currently work in document mode because we can't create new tabs
- if (FeatureUtilities.isDocumentMode(getActivity())) return;
checkPlaySecondVideo(DEFAULT_VIDEO_PAGE, VIDEO_ELEMENT, new Runnable() {
@Override
public void run() {
@@ -80,8 +77,6 @@ public class CastSwitchVideoTest extends CastTestBase {
@LargeTest
@DisableIf.Build(hardware_is = "flo", message = "https://crbug.com/623526")
public void testCastNewVideoInNewTab() throws InterruptedException, TimeoutException {
- // This won't currently work in document mode because we can't create new tabs
- if (FeatureUtilities.isDocumentMode(getActivity())) return;
checkCastSecondVideo(DEFAULT_VIDEO_PAGE, new Runnable() {
@Override
public void run() {

Powered by Google App Engine
This is Rietveld 408576698