reftest.list
(reference test list) file parser in JavaScript
npm install reftest-list-parser
This library parse following format list:
# comment
== a.html ./b.html
!= ../c.html d.html
to json:
[
{
"targetA": "a.html",
"targetB": "./b.html",
"compareOperator": "=="
},
{
"targetA": "../c.html",
"targetB": "d.html",
"compareOperator": "!="
}
]
written by js:
var fs = require("fs");
var parse = require("reftest-list-parser").parse;
var text = fs.readFileSync("reftest.list", "utf-8");
var reftestList = parse(text);
npm test
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT