aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrudhvi Rampey <gergteg777@gmail.com>2017-02-17 05:49:32 +0530
committerPrudhvi Rampey <gergteg777@gmail.com>2017-02-18 03:35:09 +0530
commitf304c56f68fce738cd5e36ffd53dba4d516237b5 (patch)
tree5110f3769a024a1c25562dc670f96c1d72fd9f15
parent216a89f7766dd366c4afbeae42cf6e1fb4f67349 (diff)
downloadservo-f304c56f68fce738cd5e36ffd53dba4d516237b5.tar.gz
servo-f304c56f68fce738cd5e36ffd53dba4d516237b5.zip
Added test documentation link to wpt's README.md
-rw-r--r--tests/wpt/README.md13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/wpt/README.md b/tests/wpt/README.md
index ff3c4302e70..8382e206aad 100644
--- a/tests/wpt/README.md
+++ b/tests/wpt/README.md
@@ -1,5 +1,6 @@
This folder contains the web platform tests, CSS WG tests, and the
-code required to integrate them with Servo.
+code required to integrate them with Servo.
+To learn how to write tests, go [here](http://web-platform-tests.org/writing-tests/index.html).
Contents
========
@@ -116,18 +117,20 @@ The simplest way to create a new test is to use the following command:
./mach create-wpt tests/wpt/path/to/new/test.html
This will create test.html in the appropriate directory using the WPT
-template for JavaScript tests. To create a new reference test instead,
-use the following:
+template for JavaScript tests. Tests are written using [testharness.js](https://github.com/w3c/testharness.js/). Documentation can be found [here](http://testthewebforward.org/docs/testharness-library.html).
+To create a new reference test instead, use the following:
./mach create-wpt --reftest tests/wpt/path/to/new/reftest.html --reference tests/wpt/path/to/reference.html
`reference.html` will be created if it does not exist, and `reftest.html`
-will be created using the WPT reftest template. These new tests can then
-be run in the following manner like any other WPT test:
+will be created using the WPT reftest template. To know more about reftests, check [this](http://web-platform-tests.org/writing-tests/reftests.html).
+These new tests can then be run in the following manner like any other WPT test:
./mach test-wpt tests/wpt/path/to/new/test.html
./mach test-wpt tests/wpt/path/to/new/reftest.html
+
+
Editing tests
=============