Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Siltaar
month_nb
Commits
a5afed19
Commit
a5afed19
authored
Oct 07, 2019
by
Siltaar
Browse files
move tests in separate folder
parent
1da65e16
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
README.adoc
View file @
a5afed19
...
@@ -17,7 +17,7 @@ It's currently presented as plain JavaScript files. To use it simply include
...
@@ -17,7 +17,7 @@ It's currently presented as plain JavaScript files. To use it simply include
the following files in your environnement :
the following files in your environnement :
```html
```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">
<script type="text/javascript">
(function() {
(function() {
const month_nb_json = JSON.parse(document.getElementById("mnb_json_elt").innerText);
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.
...
@@ -53,7 +53,7 @@ Navajo, Ojibwe, Old English, Old High German, Old Norse.
== Character encoding considerations
== 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,
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
specifically with right-to-left characters mixed with left-to-right ones, or
with aggregating characters (combining in one symbol) separated by copy/pastes
with aggregating characters (combining in one symbol) separated by copy/pastes
...
@@ -69,6 +69,7 @@ the tree).
...
@@ -69,6 +69,7 @@ the tree).
To test `month_nb.js` against the language definition file, run :
To test `month_nb.js` against the language definition file, run :
```sh
```sh
$ cd test
$ phantomjs driver_test_month_nb.js
$ phantomjs driver_test_month_nb.js
```
```
...
...
test/2013_Appendix:Months_of_the_Year
0 → 100644
View file @
a5afed19
This diff is collapsed.
Click to expand it.
test/2019_Appendix:Months_of_the_year
0 → 100644
View file @
a5afed19
This diff is collapsed.
Click to expand it.
Appendix:Months_of_the_year
→
test/
Appendix:Months_of_the_year
View file @
a5afed19
File moved
driver_test_month_nb.js
→
test/
driver_test_month_nb.js
View file @
a5afed19
...
@@ -27,9 +27,9 @@ page.onError = function(msg, trace) { // return;
...
@@ -27,9 +27,9 @@ page.onError = function(msg, trace) { // return;
};
};
// Appendix:Months_of_the_Year
// Appendix:Months_of_the_Year
var
the_page_content
=
fs
.
read
(
'
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
.
setContent
(
the_page_content
,
'
Testing month_nb against
Appendix:Months_of_the_year
'
);
page
.
injectJs
(
'
month_nb.js
'
);
page
.
injectJs
(
'
../
month_nb.js
'
);
const
_json
=
fs
.
read
(
'
month_nb.json
'
);
const
_json
=
fs
.
read
(
'
../
month_nb.json
'
);
var
_test
=
fs
.
read
(
'
test_month_nb.js
'
);
var
_test
=
fs
.
read
(
'
test_month_nb.js
'
);
_test
=
_test
.
replace
(
"
'month_nb_json_obj_replace_token';
"
,
_test
=
_test
.
replace
(
"
'month_nb_json_obj_replace_token';
"
,
`const month_nb_json = JSON.parse('
${
_json
.
replace
(
/
[\n\r]
/g
,
""
)}
');`
);
`const month_nb_json = JSON.parse('
${
_json
.
replace
(
/
[\n\r]
/g
,
""
)}
');`
);
...
...
test_month_nb.js
→
test/
test_month_nb.js
View file @
a5afed19
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment