New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 810847 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 15
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Task
Proj-XR



Sign in to add a comment

automate the tests for JS alerts once they're enabled

Project Member Reported by dbbrooks@chromium.org, Feb 9 2018

Issue description

This is just a note that came out of a meeting discussing which of the manual test cases could be automated.

 
Labels: Proj-VR

Comment 2 by ymalik@chromium.org, Feb 12 2018

Cc: asimjour@chromium.org
Status: Assigned (was: Untriaged)
Are these JS alerts that show up in VR using Amir's "2D UI in VR" path? 

Comment 3 by bshe@chromium.org, Apr 13 2018

Cc: bsheedy@chromium.org
is this intent to assign to bsheedy? I am not sure why this assigned to me. It looks like related to test infrastructure.
We indirectly test that alerts and permission prompts cause the fallback UI to be used in https://cs.chromium.org/chromium/src/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrShellTransitionTest.java?q=waitfornativeuiprompt&dr=C&l=460, although it only uses the alert and camera permission.

It would be pretty easy to loop through a bunch of cases and ensure each causes a prompt to appear. However, we won't be able to verify that everything looks correct until pixel test stuff is done.

Comment 5 by bshe@chromium.org, Apr 17 2018

I see. Amir@, do we know a list of js alerts that we need to test?

Comment 6 by bshe@chromium.org, Jun 7 2018

Owner: asimjour@chromium.org
Thanks Amir!
Components: Internals>XR
Removing Internals>VR component and assigning to Internals>XR
Components: -Internals>VR
Project Member

Comment 10 by bugdroid1@chromium.org, Aug 14

Status: Fixed (was: Assigned)
From chat with Brian re manual testing updates:
1. Can remove alert manual test case.
2. Keep confirm/prompt, but automation is coming soon, and will be updated in this bug.
Owner: bsheedy@chromium.org
Status: Assigned (was: Fixed)
Assigning to Brian for the confirm/prompt tests.
Project Member

Comment 14 by bugdroid1@chromium.org, Aug 15

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526

commit 514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526
Author: bsheedy <bsheedy@chromium.org>
Date: Wed Aug 15 16:44:47 2018

Add additional VR browser modal dialog render tests

Adds render tests for JavaScript confirm and prompt dialogs in the VR
browser.

Additionally, cleans the test file up a bit and adds the golden image
directory as a data dependency so that the tests will actually fail on
a mismatch instead of constantly producing new golden images.

Bug:  810847 
Change-Id: I6e4ea25cf6fb84f73ed3a7d90fb02eb5adb9e783
Reviewed-on: https://chromium-review.googlesource.com/1174990
Reviewed-by: Amirhossein Simjour <asimjour@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583279}
[modify] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/chrome/android/BUILD.gn
[modify] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/chrome/android/javatests/src/org/chromium/chrome/browser/vr/jsdialog/VrBrowserJavaScriptModalDialogTest.java
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_alert.Pixel_XL-25.png
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_alert.Pixel_XL-26.png
[rename] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_alert.Pixel_XL-27.png
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_confirm.Pixel_XL-25.png
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_confirm.Pixel_XL-26.png
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_prompt.Pixel_XL-25.png
[add] https://crrev.com/514a6aaf6b4c81d4c1d72f641c1c393e4cd9d526/components/test/data/js_dialogs/render_tests/VrBrowserJavaScriptModalDialogTest.js_modal_view_vr_prompt.Pixel_XL-26.png

Status: Fixed (was: Assigned)
Alright, I think it's okay to remove the manual tests for these now.
Awesome. Manual tests removed.
Labels: Test-Complete

Sign in to add a comment