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

Issue 2599113002: Add the first layout tests for WebVR to test navigator.getVRDisplays with mocked vr_service mojo in… (Closed)

Created:
3 years, 12 months ago by Lei Lei
Modified:
3 years, 11 months ago
CC:
blink-reviews, chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the first layout tests for WebVR to test navigator.getVRDisplays with mocked vr_service mojo interfaces. We will add more layout tests to cover more WebVR APIs later with same approach. BUG=675325 Committed: https://crrev.com/6a27a59ca9f7ccba5bf70846aa767de4ad3cdebb Cr-Commit-Position: refs/heads/master@{#441088}

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/resources/fake-vr-displays.js View 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js View 1 chunk +73 lines, -0 lines 6 comments Download
A third_party/WebKit/LayoutTests/vr/vrdisplays_test.html View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
Lei Lei
3 years, 12 months ago (2016-12-22 18:18:29 UTC) #2
Lei Lei
3 years, 12 months ago (2016-12-22 18:19:58 UTC) #4
dglazkov
lgtm
3 years, 12 months ago (2016-12-22 18:25:53 UTC) #5
bajones
On 2016/12/22 18:25:53, dglazkov wrote: > lgtm Stealth vacation LGTM. (Shh! Don't tell the family ...
3 years, 12 months ago (2016-12-22 21:28:46 UTC) #6
Lei Lei
On 2016/12/22 21:28:46, bajones (OOO till January) wrote: > On 2016/12/22 18:25:53, dglazkov wrote: > ...
3 years, 12 months ago (2016-12-22 21:35:15 UTC) #7
shaobo.yan
lgtm. Thx for helps on make it work!
3 years, 12 months ago (2016-12-23 01:18:39 UTC) #10
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/2599113002/1
3 years, 11 months ago (2017-01-03 04:42:18 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2017-01-03 04:48:53 UTC) #21
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/6a27a59ca9f7ccba5bf70846aa767de4ad3cdebb Cr-Commit-Position: refs/heads/master@{#441088}
3 years, 11 months ago (2017-01-03 04:51:34 UTC) #23
yzshen1
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js File third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js (right): https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js#newcode6 third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js:6: 'mojo/public/js/connection', Please note that "connection" is deprecated and being ...
3 years, 11 months ago (2017-01-03 22:29:06 UTC) #25
bsheedy
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js File third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js (right): https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js#newcode6 third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js:6: 'mojo/public/js/connection', On 2017/01/03 22:29:05, yzshen1 wrote: > Please note ...
3 years, 11 months ago (2017-01-03 22:39:06 UTC) #26
Lei Lei
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js File third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js (right): https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js#newcode6 third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js:6: 'mojo/public/js/connection', On 2017/01/03 22:39:06, bsheedy wrote: > On 2017/01/03 ...
3 years, 11 months ago (2017-01-03 22:40:35 UTC) #27
yzshen1
On 2017/01/03 22:39:06, bsheedy wrote: > https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js > File third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js (right): > > https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js#newcode6 > ...
3 years, 11 months ago (2017-01-03 22:41:54 UTC) #28
yzshen1
3 years, 11 months ago (2017-01-03 23:07:45 UTC) #29
Message was sent while issue was closed.
On 2017/01/03 22:41:54, yzshen1 wrote:
> On 2017/01/03 22:39:06, bsheedy wrote:
> >
>
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTe...
> > File third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js (right):
> > 
> >
>
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTe...
> > third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js:6:
> > 'mojo/public/js/connection',
> > On 2017/01/03 22:29:05, yzshen1 wrote:
> > > Please note that "connection" is deprecated and being removed soon.
> > 
> > What do you suggest using in its place? Or should using the solution you
> > suggested below handle this for us?
> > 
> >
>
https://codereview.chromium.org/2599113002/diff/1/third_party/WebKit/LayoutTe...
> > third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js:21:
> this.router_
> > = new router.Router(handle);
> > On 2017/01/03 22:29:05, yzshen1 wrote:
> > > Please don't use router directly, this doesn't do validation of incoming
> > > messages properly.
> > > 
> > > An example of the correct/recommended way:
> > >
> >
>
https://codesearch.chromium.org/chromium/src/third_party/WebKit/LayoutTests/s...
> > 
> > I'll look into changing this, then.
> 
> I am working on a patch for this. Still compiling. Let me see whether it
> works... (It may not if the current code has validation errors ignored.)
> 
> I will let you know soon. :)

FYI: https://codereview.chromium.org/2608383002/

Powered by Google App Engine
This is Rietveld 408576698