Commit a5afed19 authored by Siltaar's avatar Siltaar
Browse files

move tests in separate folder

parent 1da65e16
......@@ -17,7 +17,7 @@ It's currently presented as plain JavaScript files. To use it simply include
the following files in your environnement :
```html
<script src="js/month_nb/month_nb.json" type="text/json" id="mnb_json_elt"></script>
<script src="month_nb.json" type="text/json" id="mnb_json_elt"></script>
<script type="text/javascript">
(function() {
const month_nb_json = JSON.parse(document.getElementById("mnb_json_elt").innerText);
......@@ -53,7 +53,7 @@ Navajo, Ojibwe, Old English, Old High German, Old Norse.
== Character encoding considerations
Currently the `month_nb_json.js` tree data structure is filled with UTF-8
Currently the `month_nb.json` tree data structure is filled with UTF-8
characters (like "é"). It's easy to read but can prove complicated to edit,
specifically with right-to-left characters mixed with left-to-right ones, or
with aggregating characters (combining in one symbol) separated by copy/pastes
......@@ -69,6 +69,7 @@ the tree).
To test `month_nb.js` against the language definition file, run :
```sh
$ cd test
$ phantomjs driver_test_month_nb.js
```
......
This diff is collapsed.
This diff is collapsed.
......@@ -27,9 +27,9 @@ page.onError = function(msg, trace) { // return;
};
// Appendix:Months_of_the_Year
var the_page_content = fs.read ('Appendix:Months_of_the_year');
page.setContent(the_page_content, 'Appendix:Months_of_the_year');
page.injectJs('month_nb.js');
const _json = fs.read('month_nb.json');
page.setContent(the_page_content, 'Testing month_nb against Appendix:Months_of_the_year');
page.injectJs('../month_nb.js');
const _json = fs.read('../month_nb.json');
var _test = fs.read ('test_month_nb.js');
_test = _test.replace("'month_nb_json_obj_replace_token';",
`const month_nb_json = JSON.parse('${_json.replace(/[\n\r]/g, "")}');`);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment