servo/tests/wpt/web-platform-tests/fetch/data-urls
2018-10-18 22:56:04 -04:00
..
resources Update web-platform-tests to revision 824f0c1df556305042b8aa8073c32e9ef86c3efa 2018-10-18 22:56:04 -04:00
base64.any.js Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c 2018-01-31 12:24:47 -05:00
processing.any.js Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c 2018-01-31 12:24:47 -05:00
README.md Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee 2018-05-18 23:55:46 -04:00

data: URLs

resources/data-urls.json contains data: URL tests. The tests are encoded as a JSON array. Each value in the array is an array of two or three values. The first value describes the input, the second value describes the expected MIME type, null if the input is expected to fail somehow, or the empty string if the expected value is text/plain;charset=US-ASCII. The third value, if present, describes the expected body as an array of integers representing bytes.

These tests are used for data: URLs in this directory (see processing.any.js).

Forgiving-base64 decode

resources/base64.json contains forgiving-base64 decode tests. The tests are encoded as a JSON array. Each value in the array is an array of two values. The first value describes the input, the second value describes the output as an array of integers representing bytes or null if the input cannot be decoded.

These tests are used for data: URLs in this directory (see base64.any.js) and window.atob() in ../../html/webappapis/atob/base64.html.