This change is ready for review.
To view, visit change 703097. To unsubscribe, or for help writing mail filters, visit settings.
Looks good overall, just a few small suggestions
6 comments:
File third_party/WebKit/LayoutTests/resources/global-interface-listing.js:
Patch Set #10, Line 95: // a new platform-specific interface.
Suggest adding something here about WHY we have this split. Eg. "This enables us to keep the churn on the platform-specific expectations files to a bare minimum to make updates in the common (platform-neutral) case as simple as possible".
Patch Set #10, Line 96: platformSpecificInterfaces
Aside: I'm surprised PaymentRequest isn't here, I wonder why!
Patch Set #10, Line 185: interfaceNames
nit: make this line easier to read with some line splitting
Patch Set #10, Line 201: filterPlatformSpecificProperty
break long line
Also "(i, p) => filterPlatformSpecificProperty(i, p)" might be slightly clearer/shorter than relying on "bind(null".
File third_party/WebKit/LayoutTests/webexposed/global-interface-listing.html:
Patch Set #10, Line 10: false
nit: since this is cross file, use a comment or local to indicate what 'false' means. Eg. 'var platformSpecific = false;'
File third_party/WebKit/LayoutTests/webexposed/resources/global-interface-listing-worker.js:
Patch Set #10, Line 32: false
Do we want to add platform-specific versions of all the worker cases?
I guess I can see a compelling argument that the cost (having a multitude more files to update when changing a platform-specific API) isn't worth the benefit (risk of accidentally shipping an API that is BOTH worker-specific and platform-specific). But we should at least make that argument in a comment in case we want to revisit it later.
Note that we could also consider factoring the work-specific APIs in a way similar to how you're factoring the platform-specific APIs, though the value is lower because updating them automatically is easier (can rely on run-webkit-tests --reset-results).
To view, visit change 703097. To unsubscribe, or for help writing mail filters, visit settings.
PTAL
6 comments:
File third_party/WebKit/LayoutTests/resources/global-interface-listing.js:
Patch Set #10, Line 95: // a new platform-specific interface. This enables us to keep the churn on the
Suggest adding something here about WHY we have this split. Eg. […]
Done
Patch Set #10, Line 96: latform-specific expectati
Aside: I'm surprised PaymentRequest isn't here, I wonder why!
I'm seeing it in all of the platform-specific expectation files, so I'm guessing it isn't platform-specific anymore.
Patch Set #10, Line 185: ME: List inter
nit: make this line easier to read with some line splitting
Done
Patch Set #10, Line 201: nction(propertyKey) {
break long line […]
Done
File third_party/WebKit/LayoutTests/webexposed/global-interface-listing.html:
Patch Set #10, Line 10: false
nit: since this is cross file, use a comment or local to indicate what 'false' means. Eg. […]
Done
File third_party/WebKit/LayoutTests/webexposed/resources/global-interface-listing-worker.js:
Do we want to add platform-specific versions of all the worker cases? […]
I've added a comment explaining why this test is not split into platform-specific vs. platform-neutral.
To view, visit change 703097. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 11:Code-Review +1
2 comments:
File third_party/WebKit/LayoutTests/resources/global-interface-listing.js:
Patch Set #10, Line 96: latform-specific expectati
I'm seeing it in all of the platform-specific expectation files, so I'm guessing it isn't platform-s […]
Yep, I guess I just forgot that they shipped on desktop now. Yay!
File third_party/WebKit/LayoutTests/webexposed/resources/global-interface-listing-worker.js:
I've added a comment explaining why this test is not split into platform-specific vs. […]
LGTM, thanks. I agree this is the right cost/benefit trade off for now.
To view, visit change 703097. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 12:Commit-Queue +2
CQ is trying da patch.
Note: The patchset sent to CQ was uploaded after this CL was approved.
"rebased" https://chromium-review.googlesource.com/c/703097/12
Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/703097/12
Bot data: {"action": "start", "triggered_at": "2017-10-19T19:20:42.0Z", "cq_cfg_revision": "fc2b2f04ed20d88113c10951036ca403891c435f", "revision": "cd8c55d1703c66dd1d1b06aa484c3ed98e83f9df"}
Try jobs failed on following builders:
mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/569929)
Patch set 15:Commit-Queue +2
CQ is trying da patch.
Note: The patchset sent to CQ was uploaded after this CL was approved.
"updating mac expectations" https://chromium-review.googlesource.com/c/703097/15
Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/703097/15
Bot data: {"action": "start", "triggered_at": "2017-10-22T01:20:54.0Z", "cq_cfg_revision": "573b6c39d3de239a70e8fa672647b63bf0bd1f89", "revision": "5eb430943bf92062582a2de601f58594665c6aa4"}
Try jobs failed on following builders:
mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/571319)
Patch set 16:Commit-Queue +2
CQ is trying da patch.
Note: The patchset sent to CQ was uploaded after this CL was approved.
"updating mac expectations" https://chromium-review.googlesource.com/c/703097/16
Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/703097/16
Bot data: {"action": "start", "triggered_at": "2017-10-22T14:39:46.0Z", "cq_cfg_revision": "573b6c39d3de239a70e8fa672647b63bf0bd1f89", "revision": "5080d0041dfb7f0d6d4126bef801e76edb4756bb"}
Commit Bot merged this change.
Split out platform-specific webexposed tests.
This patch will split all platform-specific interfaces out of existing
global-interface-listing layout tests into a separate
global-interface-listing-platform-specific test, using a
platform-specific interface whitelist. This will remove the need to
update expectation files for each platform separately when adding a new
web interface to all platforms (which is usually the case).
Bug: 711292
Change-Id: I5995684f8df82ccbf19678086a29fcb6e633406f
Reviewed-on: https://chromium-review.googlesource.com/703097
Commit-Queue: Paul Meyer <paul...@chromium.org>
Reviewed-by: Rick Byers <rby...@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510706}
---
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt
M third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/resources/global-interface-listing-worker.js
D third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt
D third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt
A third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-platform-specific-expected.txt
D third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt
A third_party/WebKit/LayoutTests/platform/mac/webexposed/global-interface-listing-platform-specific-expected.txt
A third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-platform-specific-expected.txt
A third_party/WebKit/LayoutTests/platform/win/webexposed/global-interface-listing-platform-specific-expected.txt
M third_party/WebKit/LayoutTests/resources/global-interface-listing.js
M third_party/WebKit/LayoutTests/virtual/stable/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-dedicated-worker-expected.txt
R third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
M third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-shared-worker-expected.txt
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
A third_party/WebKit/LayoutTests/webexposed/global-interface-listing-platform-specific.html
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing.html
M third_party/WebKit/LayoutTests/webexposed/resources/global-interface-listing-worker.js
20 files changed, 364 insertions(+), 10,437 deletions(-)