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

Issue 2858933003: Upstream service worker `fetch` test to WPT (Closed)

Created:
3 years, 7 months ago by mike3
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, falken+watch_chromium.org, horo+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Upstream service worker `fetch` test to WPT **fetch-request-css-cross-origin-mime-check** Update resource file paths as appropriate and use HTTPS version of absolute URLs. **fetch-request-fallback** Both the Chromium version and upstream version of this test cover the following conditions: - same origin XHR should succeed - CORS-unsupported other origin XHR should fail - CORS-supported other origin XHR should succeed - redirected XHR should succeed - XHR which is redirected to CORS-unsupported other origin should fail - XHR which is redirected to CORS-supported other origin should succeed However, the Chromium version includes additional tests for image requests: - image request should succeed - other origin image request should succeed - CORS-unsupported other origin image request should fail - CORS-supported other origin image request should succeed - redirected image request should succeed - image request which is redirected to other origin should succeed - image request which is redirected to CORS-unsupported other origin should fail - image request which is redirected to CORS-supported other origin should succeed The two versions differ significantly in test structure, as well. Adopt the Chromium version's structure because that implements more granular assertion messages. BUG=688116 R=mek@chromium.org Review-Url: https://codereview.chromium.org/2858933003 Cr-Commit-Position: refs/heads/master@{#470248} Committed: https://chromium.googlesource.com/chromium/src/+/906aedf74008e1d36dfe1d48fdf236afb3cc5572

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Re-factor into multiple distinct sub-tests #

Total comments: 2

Patch Set 4 : Correct specification of sub-test title #

Patch Set 5 : Resolve conflict in `enable-blink-features=LayoutNG` #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -520 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-css-cross-origin-mime-check.https.html View 1 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html View 1 2 3 1 chunk +261 lines, -92 lines 1 comment Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-cross.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-cross.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-same.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-same.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-css-cross-origin-mime-check-worker.js View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/fetch-request-fallback-iframe.html View 1 chunk +17 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-css-cross-origin-mime-check.html View 1 chunk +0 lines, -50 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-fallback.html View 1 chunk +0 lines, -286 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-cross.css View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-cross.html View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-iframe.html View 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-same.css View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-same.html View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-css-cross-origin-mime-check-worker.js View 1 chunk +0 lines, -20 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-iframe.html View 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-worker.js View 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
mike3
Would you mind taking a look, Mek?
3 years, 7 months ago (2017-05-03 20:44:00 UTC) #1
Marijn Kruisselbrink
Sorry, haven't looked in too much detail yet, will do so tomorrow. Just a general ...
3 years, 7 months ago (2017-05-04 00:28:25 UTC) #2
mike3
> But rewriting it like that is probably a not insignificant amount of work... I'm ...
3 years, 7 months ago (2017-05-05 18:56:12 UTC) #3
Marijn Kruisselbrink
thanks, lgtm https://codereview.chromium.org/2858933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html (right): https://codereview.chromium.org/2858933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html#newcode84 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html:84: 'The SW must intercept the request for ...
3 years, 7 months ago (2017-05-05 23:50:26 UTC) #4
mike3
https://codereview.chromium.org/2858933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html (right): https://codereview.chromium.org/2858933003/diff/40001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html#newcode84 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html:84: 'The SW must intercept the request for a main ...
3 years, 7 months ago (2017-05-08 18:16:59 UTC) #5
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/2858933003/60001
3 years, 7 months ago (2017-05-08 18:18:05 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/263945) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-08 18:24:55 UTC) #10
mike3
There was a conflict in the file named `enable-blink-features=LayoutNG`, and I believe this is the ...
3 years, 7 months ago (2017-05-08 21:16:34 UTC) #11
falken
On 2017/05/08 21:16:34, mike3 wrote: > There was a conflict in the file named `enable-blink-features=LayoutNG`, ...
3 years, 7 months ago (2017-05-09 00:30:01 UTC) #12
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/2858933003/80001
3 years, 7 months ago (2017-05-09 00:40:10 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/406279) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 7 months ago (2017-05-09 01:21:17 UTC) #17
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/2858933003/80001
3 years, 7 months ago (2017-05-09 05:10:17 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/906aedf74008e1d36dfe1d48fdf236afb3cc5572
3 years, 7 months ago (2017-05-09 06:26:47 UTC) #22
Marijn Kruisselbrink
https://codereview.chromium.org/2858933003/diff/80001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html (right): https://codereview.chromium.org/2858933003/diff/80001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html#newcode133 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html:133: null, my mistake, but as this landed, annevk landed ...
3 years, 7 months ago (2017-05-09 18:09:09 UTC) #23
mike3
3 years, 7 months ago (2017-05-09 18:53:40 UTC) #24
Message was sent while issue was closed.
On 2017/05/09 18:09:09, Marijn Kruisselbrink wrote:
>
https://codereview.chromium.org/2858933003/diff/80001/third_party/WebKit/Layo...
> File
>
third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html
> (right):
> 
>
https://codereview.chromium.org/2858933003/diff/80001/third_party/WebKit/Layo...
>
third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-request-fallback.https.html:133:
> null,
> my mistake, but as this landed, annevk landed a change that made passing
"null"
> to assert_throws or promise_rejects cause an assertion failure. So the
> upstreamed version of this test doesn't actually pass... You probably want to
> change "null" here (and wherever else you're passing it to promise_rejects) to
> the correct exception (presumably new TypeError).

I'm glad that Anne implemented that change. I should have done this in the
first place! I'll correct this in WPT directly.

Powered by Google App Engine
This is Rietveld 408576698