- From: Marcos Caceres <mcaceres@mozilla.com>
- Date: Thu, 27 Jul 2017 06:08:55 -0400
- To: spec-prod <spec-prod@w3.org>
Hi All
🎅 new goodies, just for you:
🎁 Link to your (web-platform-) tests: add `testSuiteURI` + a space
separated list of paths to `data-tests` to link to tests. See below.
🎁 `isPreview` config option: allows you to denote that a spec is
just a preview. This is now used by Tobie's pull request preview tool.
🎁 If you have `github`, you don't need "shortName" anymore
(shortName is derived from your github repo!)
Bug fixes, etc. see full change log:
https://github.com/w3c/respec/blob/develop/CHANGELOG.md
## data-tests attribute (beta!)
The `data-tests` attribute takes a list of space-separated URLs,
allowing you to link tests to testable assertions. This will add a
details drop down to the testable assertion, with an unordered list of
tests.
The data-test works together with the testSuiteURI config option, so
it must be present or ReSpec will yell at you.
It's best used with <p> and <li> elements.
## Examples of usage
```
<script>
const respecConfig = {
testSuiteURI: "https://wpt.fyi/payment-request/",
};
</script>
<p data-tests="test-1.html test-2.html">
The user agent MUST do this stuff...
</p>
```
💝 Would appreciate your feedback and suggestions - it's useful but
could be greatly improved, so let me know how it could be better! 💝
Kind regards,
Marcos
ReSpec - "because no one wants to write a bunch of .bs"😂
Received on Thursday, 27 July 2017 10:09:18 UTC