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

Issue 2617183002: Add more WebVR layout tests, adjust test format (Closed)

Created:
3 years, 11 months ago by bsheedy
Modified:
3 years, 11 months ago
Reviewers:
bajones, dglazkov
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, haraken, feature-vr-reviews_chromium.org, darktears, blink-reviews, Eric Willigers
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add more WebVR layout tests, adjust test format Adds a handful of new WebVR layout tests using mocking. Adjusts the vr_test to pass the provided function an async_test handle. This was done due to how easy it was for the previous promise_test implementation to resolve earlier than expected, causing the test to pass before all code was run with no visible difference in the output. The use of the async_test makes the tests slightly more verbose, but ensures that we're only ending the test when we expect to. Add a fix for VRDisplay not initializing layer bounds to defaults correctly. BUG=675325, 670490, 650703 Review-Url: https://codereview.chromium.org/2617183002 Cr-Commit-Position: refs/heads/master@{#442135} Committed: https://chromium.googlesource.com/chromium/src/+/ed03ff2faec8339e93a7c48ef5213d4d73fc4f41

Patch Set 1 #

Patch Set 2 : Add some missing catches for failed getVRDisplays #

Total comments: 16

Patch Set 3 : Addressed bajones@ first comments #

Patch Set 4 : Add missing constants file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+904 lines, -282 lines) Patch
A third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/exitPresent_resolve.html View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/getEyeParameters_match.html View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/getLayers_notpresenting.html View 1 2 1 chunk +48 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/getLayers_presenting.html View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/getVRDisplays_one_display.html View 1 2 1 chunk +20 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/getVRDisplays_two_display.html View 1 2 1 chunk +39 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/getVRDisplays_zero_display.html View 1 2 1 chunk +14 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/requestAnimationFrame_called.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/requestAnimationFrame_invalidhandle.html View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/requestAnimationFrame_unregister.html View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_badleftbounds.html View 1 2 1 chunk +27 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_badrightbounds.html View 1 2 1 chunk +27 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_nogesture.html View 1 2 1 chunk +16 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_nolayers.html View 1 2 1 chunk +23 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_nosource.html View 1 2 1 chunk +23 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_notsupported.html View 1 2 1 chunk +23 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_nowebgl.html View 1 2 1 chunk +25 lines, -22 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/requestPresent_reject_nullsource.html View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_reject_toomanylayers.html View 1 2 1 chunk +28 lines, -25 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_resolve.html View 1 2 1 chunk +23 lines, -20 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/requestPresent_resolve_repeatwithgesture.html View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_resolve_repeatwithoutgesture.html View 1 2 1 chunk +37 lines, -34 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/requestPresent_resolve_webgl2.html View 1 2 1 chunk +26 lines, -23 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js View 1 2 2 chunks +39 lines, -13 lines 0 comments Download
M third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js View 1 chunk +4 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/resources/test-constants.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/stageParameters_match.html View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
bsheedy
bajones@ for making sure the tests add proper coverage dglazkov@ for OWNERS I'll likely go ...
3 years, 11 months ago (2017-01-06 18:38:17 UTC) #2
bajones
Generally looking good, with some nits: https://codereview.chromium.org/2617183002/diff/20001/third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html File third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html (right): https://codereview.chromium.org/2617183002/diff/20001/third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html#newcode23 third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html:23: }, "requestPresent succeeded ...
3 years, 11 months ago (2017-01-06 20:20:25 UTC) #4
bsheedy
Addressed comments. https://codereview.chromium.org/2617183002/diff/20001/third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html File third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html (right): https://codereview.chromium.org/2617183002/diff/20001/third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html#newcode23 third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html:23: }, "requestPresent succeeded unexpectedly"); On 2017/01/06 20:20:25, ...
3 years, 11 months ago (2017-01-06 22:14:19 UTC) #5
bajones
On 2017/01/06 22:14:19, bsheedy wrote: > Addressed comments. > > https://codereview.chromium.org/2617183002/diff/20001/third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html > File third_party/WebKit/LayoutTests/vr/exitPresent_reject_notpresenting.html > ...
3 years, 11 months ago (2017-01-06 23:16:16 UTC) #6
bsheedy
On 2017/01/06 23:16:16, bajones wrote: > LGTM, thanks! Oh, I guess you count as an ...
3 years, 11 months ago (2017-01-06 23:18:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2617183002/40001
3 years, 11 months ago (2017-01-06 23:18:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2617183002/60001
3 years, 11 months ago (2017-01-07 00:27:54 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/ed03ff2faec8339e93a7c48ef5213d4d73fc4f41
3 years, 11 months ago (2017-01-07 01:56:00 UTC) #15
vitaliii
3 years, 11 months ago (2017-01-09 10:58:41 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2616403002/ by vitaliii@chromium.org.

The reason for reverting is: Two of the added tests crash:
vr/requestAnimationFrame_invalidhandle.html
vr/requestAnimationFrame_unregister.html

BUG=679288.

Powered by Google App Engine
This is Rietveld 408576698