mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -7,8 +7,10 @@ To run WPT on Chrome on an Android device, some additional set up is required.
|
|||
First of all, as usual Android development, we need to have `adb` and be able to
|
||||
connect to the device.
|
||||
|
||||
Furthermore, until we find a better way, we need to root the Android device and
|
||||
update the /etc/hosts file to include
|
||||
## Hosts
|
||||
|
||||
Until we find a better way, we need to root the Android device and update the
|
||||
/etc/hosts file to include
|
||||
|
||||
```
|
||||
127.0.0.1 web-platform.test
|
||||
|
@ -20,7 +22,23 @@ update the /etc/hosts file to include
|
|||
0.0.0.0 nonexistent-origin.web-platform.test
|
||||
```
|
||||
|
||||
After this, we may run wpt with the `chrome_android` product
|
||||
## CA certificate
|
||||
|
||||
In order to run HTTPS tests, we need to add
|
||||
[WPT's CA](https://github.com/w3c/web-platform-tests/blob/master/tools/certs/cacert.pem)
|
||||
to the phone. First, convert the certificate from PEM to CRT:
|
||||
|
||||
```
|
||||
openssl x509 -outform der -in tools/certs/cacert.pem -out cacert.crt
|
||||
```
|
||||
|
||||
Then copy `cacert.crt` to your phone's external storage (preferably to
|
||||
Downloads/ as it'll be easier to find). Open Settings -> Security & location ->
|
||||
Encryption & credentials -> Install from storage. Find and install `cacert.crt`.
|
||||
(The setting entries might be slightly different based your Android version.)
|
||||
|
||||
|
||||
Finally, we may run wpt with the `chrome_android` product
|
||||
|
||||
```
|
||||
./wpt run chrome_android [test_list]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue