Skip to content

Commit 3606c35

Browse files
authored
wpt: update tests (#1984)
* wpt: update tests * docs: add link to steps for updating wpts * docs: add link in guides * run CI? * fix: get rid of name hack * docs: update contributing docs
1 parent 71c3605 commit 3606c35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2494
-4980
lines changed

CONTRIBUTING.md

+21
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [Lint](#lint)
66
* [Test](#test)
77
* [Coverage](#coverage)
8+
* [Update `WPTs`](#update-wpts)
89
* [Developer's Certificate of Origin 1.1](#developers-certificate-of-origin)
910
* [Moderation Policy](#moderation-policy)
1011

@@ -84,6 +85,24 @@ npm run build:wasm
8485

8586
Here are the steps to update them.
8687

88+
<details>
89+
<summary>Skip the tutorial</summary>
90+
91+
```bash
92+
git clone --depth 1 --single-branch --branch epochs/daily --filter=blob:none --sparse https://github.com/web-platform-tests/wpt.git test/wpt/tests
93+
cd test/wpt/tests
94+
git sparse-checkout add /fetch
95+
git sparse-checkout add /FileAPI
96+
git sparse-checkout add /xhr
97+
git sparse-checkout add /websockets
98+
git sparse-checkout add /resources
99+
git sparse-checkout add /common
100+
git sparse-checkout add /mimesniff
101+
git sparse-checkout add /interfaces
102+
git sparse-checkout add /resources
103+
```
104+
</details>
105+
87106
#### Sparse-clone the [wpt](https://github.com/web-platform-tests/wpt) repo
88107

89108
```bash
@@ -104,6 +123,8 @@ git sparse-checkout add /xhr
104123
git sparse-checkout add /websockets
105124
git sparse-checkout add /resources
106125
git sparse-checkout add /common
126+
127+
# etc
107128
```
108129

109130
#### Run the tests

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@
112112
"ignore": [
113113
"lib/llhttp/constants.js",
114114
"lib/llhttp/utils.js",
115-
"test/wpt/tests",
116-
"test/wpt/runner/resources"
115+
"test/wpt/tests"
117116
]
118117
},
119118
"tsd": {

0 commit comments

Comments
 (0)