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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java

Issue 2859533003: WebVR: lock focus while presenting to presenting window (Closed)
Patch Set: Add test + address comments Created 3 years, 7 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/vr_shell/WebVrTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java
index 248d64f134c961a52d0556d10005cbab3061343e..b512736bf80c1467214483d7a08e05776e0fcc96 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java
@@ -249,4 +249,17 @@ public class WebVrTest extends VrTestBase {
executeStepAndWait("stepCheckDeviceCapabilities('" + Build.DEVICE + "')", mWebContents);
endTest(mWebContents);
}
+
+ /**
+ * Tests that Daydream controller clicks are registered as screen taps when
bsheedy 2017/05/04 20:17:45 Wrong test description?
mthiesse 2017/05/04 20:24:20 Done.
+ * the viewer is a Daydream View.
+ */
+ @MediumTest
+ public void testPresentationLocksFocus() throws InterruptedException {
+ String testName = "test_presentation_locks_focus";
+ loadUrl(getHtmlTestFile(testName), PAGE_LOAD_TIMEOUT_S);
bsheedy 2017/05/04 20:17:45 Since you're presenting in this test, probably goo
mthiesse 2017/05/04 20:24:20 I think tests should be as simple as possible. Ano
+ enterVrTapAndWait(mWebContents);
+ waitOnJavaScriptStep(mWebContents);
+ endTest(mWebContents);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698