Skip to content

Commit

Permalink
Migrate to new baseline format - external/wpt/(service-workers, webso…
Browse files Browse the repository at this point in the history
…ckets)

The new baselines format for test harness tests is machine parsable.
Do this incrementally to make it easier to handle and review.

With this change, we will be able to regenerate WPT metadata from baselines.

Note to Gardeners: Please don't revert this CL if there are
individual test failures. Pls ping and I can rebaseline for
such tests.

Bug: 1481730
Change-Id: Icb7caaae14ec396b218b6c7553b6183143f6563c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4950359
Commit-Queue: Weizhong Xia <weizhong@google.com>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211662}
  • Loading branch information
WeizhongX authored and Chromium LUCI CQ committed Oct 18, 2023
1 parent 6255eb4 commit f7f9fe6
Show file tree
Hide file tree
Showing 234 changed files with 2,383 additions and 2,329 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
This is a testharness.js-based test.
PASS Cache.add called with no arguments
PASS Cache.add called with relative URL specified as a string
PASS Cache.add called with non-HTTP/HTTPS URL
PASS Cache.add called with Request object
PASS Cache.add called with POST request
PASS Cache.add called twice with the same Request object
PASS Cache.add with request with null body (not consumed)
PASS Cache.add with 206 response
PASS Cache.addAll with 206 response
PASS Cache.addAll with opaque-filtered 206 response
PASS Cache.add with request that results in a status of 404
PASS Cache.add with request that results in a status of 500
PASS Cache.addAll with no arguments
PASS Cache.addAll with a mix of valid and undefined arguments
PASS Cache.addAll with an empty array
PASS Cache.addAll with string URL arguments
PASS Cache.addAll with Request arguments
PASS Cache.addAll with a mix of succeeding and failing requests
FAIL Cache.addAll called with the same Request object specified twice promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
PASS Cache.addAll should succeed when entries differ by vary header
PASS Cache.addAll should reject when entries are duplicate by vary header
PASS Cache.addAll should reject when one entry has a vary header matching another entry
[PASS] Cache.add called with no arguments
[PASS] Cache.add called with relative URL specified as a string
[PASS] Cache.add called with non-HTTP/HTTPS URL
[PASS] Cache.add called with Request object
[PASS] Cache.add called with POST request
[PASS] Cache.add called twice with the same Request object
[PASS] Cache.add with request with null body (not consumed)
[PASS] Cache.add with 206 response
[PASS] Cache.addAll with 206 response
[PASS] Cache.addAll with opaque-filtered 206 response
[PASS] Cache.add with request that results in a status of 404
[PASS] Cache.add with request that results in a status of 500
[PASS] Cache.addAll with no arguments
[PASS] Cache.addAll with a mix of valid and undefined arguments
[PASS] Cache.addAll with an empty array
[PASS] Cache.addAll with string URL arguments
[PASS] Cache.addAll with Request arguments
[PASS] Cache.addAll with a mix of succeeding and failing requests
[FAIL] Cache.addAll called with the same Request object specified twice
promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
[PASS] Cache.addAll should succeed when entries differ by vary header
[PASS] Cache.addAll should reject when entries are duplicate by vary header
[PASS] Cache.addAll should reject when one entry has a vary header matching another entry
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
This is a testharness.js-based test.
PASS Cache.add called with no arguments
PASS Cache.add called with relative URL specified as a string
PASS Cache.add called with non-HTTP/HTTPS URL
PASS Cache.add called with Request object
PASS Cache.add called with POST request
PASS Cache.add called twice with the same Request object
PASS Cache.add with request with null body (not consumed)
PASS Cache.add with 206 response
PASS Cache.addAll with 206 response
PASS Cache.addAll with opaque-filtered 206 response
PASS Cache.add with request that results in a status of 404
PASS Cache.add with request that results in a status of 500
PASS Cache.addAll with no arguments
PASS Cache.addAll with a mix of valid and undefined arguments
PASS Cache.addAll with an empty array
PASS Cache.addAll with string URL arguments
PASS Cache.addAll with Request arguments
PASS Cache.addAll with a mix of succeeding and failing requests
FAIL Cache.addAll called with the same Request object specified twice promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
PASS Cache.addAll should succeed when entries differ by vary header
PASS Cache.addAll should reject when entries are duplicate by vary header
PASS Cache.addAll should reject when one entry has a vary header matching another entry
[PASS] Cache.add called with no arguments
[PASS] Cache.add called with relative URL specified as a string
[PASS] Cache.add called with non-HTTP/HTTPS URL
[PASS] Cache.add called with Request object
[PASS] Cache.add called with POST request
[PASS] Cache.add called twice with the same Request object
[PASS] Cache.add with request with null body (not consumed)
[PASS] Cache.add with 206 response
[PASS] Cache.addAll with 206 response
[PASS] Cache.addAll with opaque-filtered 206 response
[PASS] Cache.add with request that results in a status of 404
[PASS] Cache.add with request that results in a status of 500
[PASS] Cache.addAll with no arguments
[PASS] Cache.addAll with a mix of valid and undefined arguments
[PASS] Cache.addAll with an empty array
[PASS] Cache.addAll with string URL arguments
[PASS] Cache.addAll with Request arguments
[PASS] Cache.addAll with a mix of succeeding and failing requests
[FAIL] Cache.addAll called with the same Request object specified twice
promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
[PASS] Cache.addAll should succeed when entries differ by vary header
[PASS] Cache.addAll should reject when entries are duplicate by vary header
[PASS] Cache.addAll should reject when one entry has a vary header matching another entry
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
This is a testharness.js-based test.
PASS Cache.add called with no arguments
PASS Cache.add called with relative URL specified as a string
PASS Cache.add called with non-HTTP/HTTPS URL
PASS Cache.add called with Request object
PASS Cache.add called with POST request
PASS Cache.add called twice with the same Request object
PASS Cache.add with request with null body (not consumed)
PASS Cache.add with 206 response
PASS Cache.addAll with 206 response
PASS Cache.addAll with opaque-filtered 206 response
PASS Cache.add with request that results in a status of 404
PASS Cache.add with request that results in a status of 500
PASS Cache.addAll with no arguments
PASS Cache.addAll with a mix of valid and undefined arguments
PASS Cache.addAll with an empty array
PASS Cache.addAll with string URL arguments
PASS Cache.addAll with Request arguments
PASS Cache.addAll with a mix of succeeding and failing requests
FAIL Cache.addAll called with the same Request object specified twice promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
PASS Cache.addAll should succeed when entries differ by vary header
PASS Cache.addAll should reject when entries are duplicate by vary header
PASS Cache.addAll should reject when one entry has a vary header matching another entry
[PASS] Cache.add called with no arguments
[PASS] Cache.add called with relative URL specified as a string
[PASS] Cache.add called with non-HTTP/HTTPS URL
[PASS] Cache.add called with Request object
[PASS] Cache.add called with POST request
[PASS] Cache.add called twice with the same Request object
[PASS] Cache.add with request with null body (not consumed)
[PASS] Cache.add with 206 response
[PASS] Cache.addAll with 206 response
[PASS] Cache.addAll with opaque-filtered 206 response
[PASS] Cache.add with request that results in a status of 404
[PASS] Cache.add with request that results in a status of 500
[PASS] Cache.addAll with no arguments
[PASS] Cache.addAll with a mix of valid and undefined arguments
[PASS] Cache.addAll with an empty array
[PASS] Cache.addAll with string URL arguments
[PASS] Cache.addAll with Request arguments
[PASS] Cache.addAll with a mix of succeeding and failing requests
[FAIL] Cache.addAll called with the same Request object specified twice
promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
[PASS] Cache.addAll should succeed when entries differ by vary header
[PASS] Cache.addAll should reject when entries are duplicate by vary header
[PASS] Cache.addAll should reject when one entry has a vary header matching another entry
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
This is a testharness.js-based test.
PASS Cache.add called with no arguments
PASS Cache.add called with relative URL specified as a string
PASS Cache.add called with non-HTTP/HTTPS URL
PASS Cache.add called with Request object
PASS Cache.add called with POST request
PASS Cache.add called twice with the same Request object
PASS Cache.add with request with null body (not consumed)
PASS Cache.add with 206 response
PASS Cache.addAll with 206 response
PASS Cache.addAll with opaque-filtered 206 response
PASS Cache.add with request that results in a status of 404
PASS Cache.add with request that results in a status of 500
PASS Cache.addAll with no arguments
PASS Cache.addAll with a mix of valid and undefined arguments
PASS Cache.addAll with an empty array
PASS Cache.addAll with string URL arguments
PASS Cache.addAll with Request arguments
PASS Cache.addAll with a mix of succeeding and failing requests
FAIL Cache.addAll called with the same Request object specified twice promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
PASS Cache.addAll should succeed when entries differ by vary header
PASS Cache.addAll should reject when entries are duplicate by vary header
PASS Cache.addAll should reject when one entry has a vary header matching another entry
[PASS] Cache.add called with no arguments
[PASS] Cache.add called with relative URL specified as a string
[PASS] Cache.add called with non-HTTP/HTTPS URL
[PASS] Cache.add called with Request object
[PASS] Cache.add called with POST request
[PASS] Cache.add called twice with the same Request object
[PASS] Cache.add with request with null body (not consumed)
[PASS] Cache.add with 206 response
[PASS] Cache.addAll with 206 response
[PASS] Cache.addAll with opaque-filtered 206 response
[PASS] Cache.add with request that results in a status of 404
[PASS] Cache.add with request that results in a status of 500
[PASS] Cache.addAll with no arguments
[PASS] Cache.addAll with a mix of valid and undefined arguments
[PASS] Cache.addAll with an empty array
[PASS] Cache.addAll with string URL arguments
[PASS] Cache.addAll with Request arguments
[PASS] Cache.addAll with a mix of succeeding and failing requests
[FAIL] Cache.addAll called with the same Request object specified twice
promise_rejects_dom: Cache.addAll should throw InvalidStateError if the same request is added twice. function "function() { throw e }" threw object "TypeError: Failed to execute 'addAll' on 'Cache': Request failed" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
[PASS] Cache.addAll should succeed when entries differ by vary header
[PASS] Cache.addAll should reject when entries are duplicate by vary header
[PASS] Cache.addAll should reject when one entry has a vary header matching another entry
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
This is a testharness.js-based test.
FAIL Request.IsReloadNavigation should persist. assert_equals: expected "original: false, stored: false" but got "original: undefined, stored: undefined"
FAIL Request.IsHistoryNavigation should persist. assert_equals: expected "original: true, stored: true" but got "original: true, stored: false"
[FAIL] Request.IsReloadNavigation should persist.
assert_equals: expected "original: false, stored: false" but got "original: undefined, stored: undefined"
[FAIL] Request.IsHistoryNavigation should persist.
assert_equals: expected "original: true, stored: true" but got "original: true, stored: false"
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
This is a testharness.js-based test.
PASS Cache.keys() called on an empty cache
PASS Cache.keys with no matching entries
PASS Cache.keys with URL
PASS Cache.keys with Request
PASS Cache.keys with new Request
PASS Cache.keys with ignoreSearch option (request with no search parameters)
PASS Cache.keys with ignoreSearch option (request with search parameters)
PASS Cache.keys supports ignoreMethod
PASS Cache.keys supports ignoreVary
PASS Cache.keys with URL containing fragment
PASS Cache.keys with string fragment "http" as query
PASS Cache.keys without parameters
PASS Cache.keys with explicitly undefined request
PASS Cache.keys with explicitly undefined request and empty options
FAIL Cache.keys without parameters and VARY entries assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
PASS Cache.keys with a HEAD Request
[PASS] Cache.keys() called on an empty cache
[PASS] Cache.keys with no matching entries
[PASS] Cache.keys with URL
[PASS] Cache.keys with Request
[PASS] Cache.keys with new Request
[PASS] Cache.keys with ignoreSearch option (request with no search parameters)
[PASS] Cache.keys with ignoreSearch option (request with search parameters)
[PASS] Cache.keys supports ignoreMethod
[PASS] Cache.keys supports ignoreVary
[PASS] Cache.keys with URL containing fragment
[PASS] Cache.keys with string fragment "http" as query
[PASS] Cache.keys without parameters
[PASS] Cache.keys with explicitly undefined request
[PASS] Cache.keys with explicitly undefined request and empty options
[FAIL] Cache.keys without parameters and VARY entries
assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
[PASS] Cache.keys with a HEAD Request
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
This is a testharness.js-based test.
PASS Cache.keys() called on an empty cache
PASS Cache.keys with no matching entries
PASS Cache.keys with URL
PASS Cache.keys with Request
PASS Cache.keys with new Request
PASS Cache.keys with ignoreSearch option (request with no search parameters)
PASS Cache.keys with ignoreSearch option (request with search parameters)
PASS Cache.keys supports ignoreMethod
PASS Cache.keys supports ignoreVary
PASS Cache.keys with URL containing fragment
PASS Cache.keys with string fragment "http" as query
PASS Cache.keys without parameters
PASS Cache.keys with explicitly undefined request
PASS Cache.keys with explicitly undefined request and empty options
FAIL Cache.keys without parameters and VARY entries assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
PASS Cache.keys with a HEAD Request
[PASS] Cache.keys() called on an empty cache
[PASS] Cache.keys with no matching entries
[PASS] Cache.keys with URL
[PASS] Cache.keys with Request
[PASS] Cache.keys with new Request
[PASS] Cache.keys with ignoreSearch option (request with no search parameters)
[PASS] Cache.keys with ignoreSearch option (request with search parameters)
[PASS] Cache.keys supports ignoreMethod
[PASS] Cache.keys supports ignoreVary
[PASS] Cache.keys with URL containing fragment
[PASS] Cache.keys with string fragment "http" as query
[PASS] Cache.keys without parameters
[PASS] Cache.keys with explicitly undefined request
[PASS] Cache.keys with explicitly undefined request and empty options
[FAIL] Cache.keys without parameters and VARY entries
assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
[PASS] Cache.keys with a HEAD Request
Harness: the test ran to completion.

Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
This is a testharness.js-based test.
PASS Cache.keys() called on an empty cache
PASS Cache.keys with no matching entries
PASS Cache.keys with URL
PASS Cache.keys with Request
PASS Cache.keys with new Request
PASS Cache.keys with ignoreSearch option (request with no search parameters)
PASS Cache.keys with ignoreSearch option (request with search parameters)
PASS Cache.keys supports ignoreMethod
PASS Cache.keys supports ignoreVary
PASS Cache.keys with URL containing fragment
PASS Cache.keys with string fragment "http" as query
PASS Cache.keys without parameters
PASS Cache.keys with explicitly undefined request
PASS Cache.keys with explicitly undefined request and empty options
FAIL Cache.keys without parameters and VARY entries assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
PASS Cache.keys with a HEAD Request
[PASS] Cache.keys() called on an empty cache
[PASS] Cache.keys with no matching entries
[PASS] Cache.keys with URL
[PASS] Cache.keys with Request
[PASS] Cache.keys with new Request
[PASS] Cache.keys with ignoreSearch option (request with no search parameters)
[PASS] Cache.keys with ignoreSearch option (request with search parameters)
[PASS] Cache.keys supports ignoreMethod
[PASS] Cache.keys supports ignoreVary
[PASS] Cache.keys with URL containing fragment
[PASS] Cache.keys with string fragment "http" as query
[PASS] Cache.keys without parameters
[PASS] Cache.keys with explicitly undefined request
[PASS] Cache.keys with explicitly undefined request and empty options
[FAIL] Cache.keys without parameters and VARY entries
assert_equals: Cache.keys without parameters should match all entries. expected 3 but got 1
[PASS] Cache.keys with a HEAD Request
Harness: the test ran to completion.

0 comments on commit f7f9fe6

Please sign in to comment.