inliner/test
2017-08-25 22:01:04 +01:00
..
fixtures test: trickier circle.svg to test escaping 2017-08-25 22:01:04 +01:00
index.test.js test: fix broken test plan & use glitch>now 2017-05-19 15:11:40 +01:00
README.md fix: don't corrupt whitespace in scripts 2017-04-05 10:56:14 +01:00

Tests

When filing bugs, if it's an inlining issue, ensure you include full test source to work against.

This can be via a PR or by linking to a gist that include at least two (first) files:

  • <issue>.src.html
  • <issue>.result.html

When these are put in the fixtures directory, they are automatically tested against.

If there are any external assets the example needs, please also include these and name them with the same root as your example, i.e. <issue>.css or <issue>.min.js etc.

In addition <issue>.opts.json can be loaded to help specify runtime options during the test.

To test a single fixture you can use::

$ FILTER=<issue> npm test