mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -46,25 +46,17 @@ If you are a first-time GitHub user, read on for more details of the workflow.
|
|||
## Test Repositories
|
||||
|
||||
The test repository that you contribute to will depend on the specification
|
||||
that you are testing. Currently there are two test repositories, one for CSS
|
||||
specification tests and the main W3C repository that contains tests for all
|
||||
other specifications:
|
||||
that you are testing.
|
||||
|
||||
**Main W3C test repository**: [github.com/w3c/web-platform-tests][main-repo]
|
||||
|
||||
**CSS specification test repository**: [github.com/w3c/csswg-test][css-repo]
|
||||
|
||||
## Fork
|
||||
|
||||
Now that you have Git set up, you will need to fork the test repository. This
|
||||
will enable you to [submit][submit] your tests using a pull request (more on this
|
||||
[below][submit]).
|
||||
|
||||
1. In the browser, go the the GitHub page for the test repository:
|
||||
|
||||
CSS test repository: [github.com/w3c/csswg-test][css-repo]
|
||||
|
||||
Main W3C test repository: [github.com/w3c/web-platform-tests][main-repo]
|
||||
1. In the browser, go to [web-platform-tests on GitHub][main-repo].
|
||||
|
||||
2. Click the ![fork][forkbtn] button in the upper right.
|
||||
|
||||
|
@ -82,16 +74,9 @@ If your [fork](#fork) was successful, the next step is to clone (download a copy
|
|||
### Clone the test repo
|
||||
At the command prompt, cd into the directory where you want to keep the tests.
|
||||
|
||||
* If you forked the W3C Web Platform tests:
|
||||
|
||||
$ git clone --recursive https://github.com/username/web-platform-tests.git
|
||||
|
||||
If you forked the CSS tests:
|
||||
|
||||
$ git clone --recursive https://github.com/username/csswg-test.git
|
||||
|
||||
_This will download the tests into a directory named for the repo:_
|
||||
`./web-platform-tests` _or_ `./csswg-test`.
|
||||
_This will download the tests into a directory named for the repo:_ `web-platform-tests/`.
|
||||
|
||||
* You should now have a full copy of the test repository on your local
|
||||
machine. Feel free to browse the directories on your hard drive. You can also
|
||||
|
@ -104,7 +89,7 @@ At the command prompt, cd into the directory where you want to keep the tests.
|
|||
|
||||
* If you cloned the the test repo and did not use the `--recursive` option, you will likely have an empty `resources` directory at the root of your cloned repo. You can clone the submodules with these additional steps:
|
||||
|
||||
$ cd test-repo-root
|
||||
$ cd web-platform-tests
|
||||
$ git submodule update --init --recursive
|
||||
|
||||
_You should now see the submodules in the repository. For example,_ `testharness` _files in should be in the resources directory._
|
||||
|
@ -124,16 +109,10 @@ repository.
|
|||
$ git checkout master
|
||||
|
||||
3. Next, add the remote of the repository your forked. This assigns the
|
||||
original repository to a remote called "upstream"
|
||||
|
||||
If you forked the [Web Platform Tests repository][main-repo]:
|
||||
original repository to a remote called "upstream":
|
||||
|
||||
$ git remote add upstream https://github.com/w3c/web-platform-tests.git
|
||||
|
||||
If you forked the [CSSWG-test repository][css-repo]:
|
||||
|
||||
$ git remote add upstream https://github.com/w3c/csswg-test.git
|
||||
|
||||
4. To pull in changes in the original repository that are not present in your
|
||||
local repository first fetch them:
|
||||
|
||||
|
@ -344,8 +323,8 @@ If it is possible to review the tests without a local copy,
|
|||
but the reviewer still wants to make some simple tweaks to the tests before merging,
|
||||
it is possible to do so via the Github web UI.
|
||||
|
||||
1. Open the pull request. E.g. https://github.com/w3c/csswg-test/pull/1234
|
||||
2. Go to the ![Files changed][files-changed] view (e.g. https://github.com/w3c/csswg-test/pull/1234/files)
|
||||
1. Open the pull request. E.g. https://github.com/w3c/web-platform-tests/pull/1234
|
||||
2. Go to the ![Files changed][files-changed] view (e.g. https://github.com/w3c/web-platform-tests/pull/1234/files)
|
||||
3. Locate the files you wish to change, and click the ![pencil][pencil-icon] icon in the upper right corner
|
||||
4. Make the desired change
|
||||
5. Write a commit message (including a good title) at the bottom
|
||||
|
@ -406,7 +385,6 @@ you may also discard your connection to their repo:
|
|||
[branch]: #branch
|
||||
[commit]: #commit
|
||||
[clone]: #clone
|
||||
[css-repo]: https://github.com/w3c/csswg-test
|
||||
[forkbtn]: {{ site.baseurl }}{% link /assets/forkbtn.png %}
|
||||
[git]: https://git-scm.com/downloads
|
||||
[git-book]: https://git-scm.com/book
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue