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

Issue 1994683004: Add web platform pointerevents tests to Layouttest (Closed)

Created:
4 years, 7 months ago by Navid Zolghadr
Modified:
4 years, 6 months ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add web platform pointerevents tests to Layouttest Adding two of the tests and using eventsender and gpu benchmarking to give inputs automatically to them. BUG=612924 Committed: https://crrev.com/c632c23f1b36f09e737d67e23a1c37fcd98836ab Cr-Commit-Position: refs/heads/master@{#398672}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Enable GPU benchmarking #

Patch Set 4 : Fix webexposed global interface test #

Total comments: 1

Patch Set 5 : Skip touch test on Mac #

Total comments: 2

Patch Set 6 : Renaming the test folder #

Patch Set 7 : Renaming input method #

Patch Set 8 : Remove the -manual suffix #

Patch Set 9 : Separate input methods from actual tests #

Patch Set 10 : #

Total comments: 5

Patch Set 11 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -5 lines) Patch
M content/shell/app/shell_main_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +127 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-img-element/update-the-source-set-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/resources/testharnessreport.js View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_button_attribute_mouse-manual-input.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/resources/testharnessreport.js View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 2 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (10 generated)
Navid Zolghadr
This is the first CL to use gpu benchmarking and event sender to send events ...
4 years, 7 months ago (2016-05-19 14:31:30 UTC) #2
tdresser
I think we'll want to add --enable-gpu-benchmarking to the default bot flags. It should have ...
4 years, 7 months ago (2016-05-19 14:40:04 UTC) #3
Navid Zolghadr
Do you know who I need to talk to about adding that flag? Also the ...
4 years, 7 months ago (2016-05-19 14:44:23 UTC) #4
tdresser
On 2016/05/19 14:44:23, Navid Zolghadr wrote: > Do you know who I need to talk ...
4 years, 7 months ago (2016-05-19 15:21:01 UTC) #5
dtapuska
https://codereview.chromium.org/1994683004/diff/50001/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://codereview.chromium.org/1994683004/diff/50001/content/public/common/content_switches.h#newcode116 content/public/common/content_switches.h:116: CONTENT_EXPORT extern const char kEnableGpuBenchmarking[]; I think if we ...
4 years, 7 months ago (2016-05-20 13:28:11 UTC) #6
Navid Zolghadr
On 2016/05/20 13:28:11, dtapuska wrote: > https://codereview.chromium.org/1994683004/diff/50001/content/public/common/content_switches.h > File content/public/common/content_switches.h (right): > > https://codereview.chromium.org/1994683004/diff/50001/content/public/common/content_switches.h#newcode116 > ...
4 years, 7 months ago (2016-05-20 14:16:44 UTC) #7
tdresser
On 2016/05/20 14:16:44, Navid Zolghadr wrote: > On 2016/05/20 13:28:11, dtapuska wrote: > > > ...
4 years, 7 months ago (2016-05-20 14:27:16 UTC) #8
Navid Zolghadr
On 2016/05/20 14:27:16, tdresser wrote: > On 2016/05/20 14:16:44, Navid Zolghadr wrote: > > On ...
4 years, 7 months ago (2016-05-20 19:40:18 UTC) #11
mustaq
On 2016/05/20 19:40:18, Navid Zolghadr wrote: > On 2016/05/20 14:27:16, tdresser wrote: > > On ...
4 years, 7 months ago (2016-05-20 20:46:48 UTC) #12
Navid Zolghadr
On 2016/05/20 20:46:48, mustaq wrote: > On 2016/05/20 19:40:18, Navid Zolghadr wrote: > > On ...
4 years, 7 months ago (2016-05-20 22:58:24 UTC) #13
Navid Zolghadr
ptal.
4 years, 7 months ago (2016-05-24 14:41:07 UTC) #14
mustaq
LGTM. https://codereview.chromium.org/1994683004/diff/70001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html (right): https://codereview.chromium.org/1994683004/diff/70001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html#newcode18 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html:18: <body onload="run(); input();"> Nit: inject_input() or simulate_input()?
4 years, 7 months ago (2016-05-24 19:40:55 UTC) #15
Navid Zolghadr
https://codereview.chromium.org/1994683004/diff/70001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html File third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html (right): https://codereview.chromium.org/1994683004/diff/70001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html#newcode18 third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html:18: <body onload="run(); input();"> On 2016/05/24 19:40:55, mustaq wrote: > ...
4 years, 7 months ago (2016-05-24 19:50:33 UTC) #16
dtapuska
On 2016/05/24 19:50:33, Navid Zolghadr wrote: > https://codereview.chromium.org/1994683004/diff/70001/third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html > File > third_party/WebKit/LayoutTests/virtual/pointerevent/fast/events/pointerevents/wpt/pointerevent_button_attribute_mouse-manual.html > (right): > ...
4 years, 7 months ago (2016-05-24 22:19:24 UTC) #17
Navid Zolghadr
On 2016/05/24 22:19:24, dtapuska wrote: > On 2016/05/24 19:50:33, Navid Zolghadr wrote: > > > ...
4 years, 7 months ago (2016-05-25 14:38:33 UTC) #18
mustaq
On 2016/05/25 14:38:33, Navid Zolghadr wrote: > On 2016/05/24 22:19:24, dtapuska wrote: > > On ...
4 years, 7 months ago (2016-05-26 14:33:03 UTC) #19
Navid Zolghadr
On 2016/05/26 14:33:03, mustaq wrote: > On 2016/05/25 14:38:33, Navid Zolghadr wrote: > > On ...
4 years, 7 months ago (2016-05-26 14:39:55 UTC) #20
Navid Zolghadr
ptal. This is the improved way to inject the input. Basically the js files that ...
4 years, 6 months ago (2016-06-06 21:42:36 UTC) #22
Dirk Pranke
lgtm https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/TestExpectations#newcode157 third_party/WebKit/LayoutTests/TestExpectations:157: nit: remove blank line. https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js File third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js (right): ...
4 years, 6 months ago (2016-06-06 23:27:04 UTC) #23
Navid Zolghadr
https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/TestExpectations#newcode157 third_party/WebKit/LayoutTests/TestExpectations:157: On 2016/06/06 23:27:04, Dirk Pranke wrote: > nit: remove ...
4 years, 6 months ago (2016-06-07 14:25:42 UTC) #24
Navid Zolghadr
creis@chromium.org: Please review changes in content/shell/app/shell_main_delegate.cc rbyers@chromium.org: Please review changes in third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt Rick, since internals ...
4 years, 6 months ago (2016-06-07 14:27:44 UTC) #26
tdresser
LGTM https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js File third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js (right): https://codereview.chromium.org/1994683004/diff/170001/third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js#newcode2 third_party/WebKit/LayoutTests/imported/wpt_automation/pointerevents/pointerevent_change-touch-action-onpointerdown_touch-manual-input.js:2: chrome.gpuBenchmarking.smoothDrag(250, 250, 200, 200, function() {}, 1); On ...
4 years, 6 months ago (2016-06-07 14:28:07 UTC) #27
Charlie Reis
content/shell/app/shell_main_delegate.cc LGTM
4 years, 6 months ago (2016-06-07 16:58:34 UTC) #28
lanwei
LGTM! Btw, I think chrome.gpuBenchmarking.smoothDrag(250, 250, 200, 200) also works.
4 years, 6 months ago (2016-06-08 00:34:18 UTC) #29
Navid Zolghadr
On 2016/06/08 00:34:18, lanwei wrote: > LGTM! Btw, I think chrome.gpuBenchmarking.smoothDrag(250, 250, 200, 200) also ...
4 years, 6 months ago (2016-06-08 01:56:04 UTC) #30
Rick Byers
On 2016/06/07 14:27:44, Navid Zolghadr wrote: > mailto:creis@chromium.org: Please review changes in > > content/shell/app/shell_main_delegate.cc ...
4 years, 6 months ago (2016-06-08 17:42:52 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1994683004/190001
4 years, 6 months ago (2016-06-08 17:48:35 UTC) #34
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 6 months ago (2016-06-08 21:13:02 UTC) #36
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/c632c23f1b36f09e737d67e23a1c37fcd98836ab Cr-Commit-Position: refs/heads/master@{#398672}
4 years, 6 months ago (2016-06-08 21:14:30 UTC) #38
timvolodine
https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (right): https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode6462 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:6462: attribute chrome do we really need to expose this ...
4 years, 6 months ago (2016-06-09 11:25:39 UTC) #40
tdresser
https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt File third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt (right): https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt#newcode6462 third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:6462: attribute chrome On 2016/06/09 11:25:39, timvolodine wrote: > do ...
4 years, 6 months ago (2016-06-09 11:54:48 UTC) #41
Rick Byers
On 2016/06/09 11:54:48, tdresser wrote: > https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt > File > third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt > (right): > > ...
4 years, 6 months ago (2016-06-09 12:39:32 UTC) #42
timvolodine
On 2016/06/09 12:39:32, Rick Byers wrote: > On 2016/06/09 11:54:48, tdresser wrote: > > > ...
4 years, 6 months ago (2016-06-09 12:59:33 UTC) #43
timvolodine
On 2016/06/09 12:59:33, timvolodine wrote: > On 2016/06/09 12:39:32, Rick Byers wrote: > > On ...
4 years, 6 months ago (2016-06-09 13:13:50 UTC) #44
Rick Byers
4 years, 6 months ago (2016-06-09 13:54:22 UTC) #45
Message was sent while issue was closed.
On 2016/06/09 13:13:50, timvolodine wrote:
> On 2016/06/09 12:59:33, timvolodine wrote:
> > On 2016/06/09 12:39:32, Rick Byers wrote:
> > > On 2016/06/09 11:54:48, tdresser wrote:
> > > >
> > >
> >
>
https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/Lay...
> > > > File
> > > >
> > >
> >
>
third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
> > > > (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/1994683004/diff/190001/third_party/WebKit/Lay...
> > > >
> > >
> >
>
third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt:6462:
> > > > attribute chrome
> > > > On 2016/06/09 11:25:39, timvolodine wrote:
> > > > > do we really need to expose this in stable? not familiar with the
usage,
> > but
> > > > > looks like 'window.chrome' is used in tests without it being exposed
> here?
> > > > 
> > > > I agree this isn't ideal - I'm not sure how we'd prevent this though.
Any
> > > ideas?
> > > > We want to expose this to all layout tests, except this one.
> > > 
> > > Note that this isn't "exposed in stable" - it's only exposed when running
> > layout
> > > tests, exactly like window.internals is and our virtual/stable/webexposed
> > > testsuite isn't smart enough to know that.  We could make the test suite
> > smarter
> > > (eg. maybe run "webexposed" in it's own virtual testsuite that disables
all
> > > test-specific APIs) but I don't think it'd buy us that much in practice. 
> What
> > > specifically is the concern here?
> > 
> > Right, the reason I am asking is that we have some WebView bots that trigger
> > when something is exposed in 'stable' but not in WebView. In this case it
> seems
> > to be listed but not really exposed, which is a bit confusing. The
comparison
> is
> > based on virtual/stable/ in the assumption that the attributes/methods there
> are
> > web-exposed in stable as the name implies. I've added a specific exception
for
> > this (like we have for window.internals mentioned by Rick), so it's fine
now.
> > However I was wondering if we could just drop the chrome attribute in
> > virtual/stable/.. and only keep it in webexposed/ would that work?
> 
> Ah sorry ignore my question, I was reading the other way around apparently.
> So yes the point is that it's slightly confusing maybe some kind of annotation
> would help, but it's non-essential :)

Yeah sorry for the confusion - this should be a one-off (and I should have
thought to ask mustaq to update the webview results at the same time and/or ping
you).  Still I've filed https://crbug.com/618689 to track / discuss further.

Powered by Google App Engine
This is Rietveld 408576698