Skip to content

Commit

Permalink
add json validator and Travis CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyrd committed Oct 21, 2013
1 parent e88174a commit 46af7af
Show file tree
Hide file tree
Showing 11 changed files with 438 additions and 151 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.6
script: node validator/validate-jsons.js
2 changes: 1 addition & 1 deletion features-json/audio.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"links":[
{
"url":"http://www.jplayer.org/latest/demos/",
"title":"Demos of audio player that uses <audio>"
"title":"Demos of audio player that uses &lt;audio>"
},
{
"url":"http://html5doctor.com/native-audio-in-the-browser/",
Expand Down
2 changes: 1 addition & 1 deletion features-json/blobbuilder.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

],
"categories":[
null
"JS API"
],
"stats":{
"ie":{
Expand Down
145 changes: 0 additions & 145 deletions features-json/css3-conditional.json

This file was deleted.

4 changes: 2 additions & 2 deletions features-json/testfeat.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@
"android":{
"2.1":"n",
"2.2":"n",
"2.3":"",
"2.3":"u",
"3":"n",
"4":"n",
"4.1":"n",
"4.2-4.3":"n"
},
"bb":{
"7":"",
"7":"u",
"10":"n"
},
"op_mob":{
Expand Down
2 changes: 1 addition & 1 deletion features-json/text-overflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"title":"jQuery polyfill for Firefox"
},
{
"url":"http://docs.webplatform.org/wiki/css/properties/text-overflow ",
"url":"http://docs.webplatform.org/wiki/css/properties/text-overflow",
"title":"WebPlatform Docs"
},
{
Expand Down
2 changes: 1 addition & 1 deletion features-json/webvtt.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"url":"http://dev.opera.com/articles/view/an-introduction-to-webvtt-and-track/",
"title":"An Introduction to WebVTT and <track>"
"title":"An Introduction to WebVTT and &lt;track>"
}
],
"bugs":[
Expand Down
167 changes: 167 additions & 0 deletions sample-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"title":"Sample title",
"description":"Sample description",
"spec":"http://example.com/path/to/spec.html",
"status":"wd",
"links":[
{
"url":"http://example.com/path/to/link.html",
"title":"Link title"
}
],
"bugs":[
{
"description":"Sample bug description"
}
],
"categories":[
"CSS",
"JS API"
],
"stats":{
"ie":{
"5.5":"u",
"6":"u",
"7":"u",
"8":"u",
"9":"u",
"10":"u",
"11":"u"
},
"firefox":{
"2":"u",
"3":"u",
"3.5":"u",
"3.6":"u",
"4":"u",
"5":"u",
"6":"u",
"7":"u",
"8":"u",
"9":"u",
"10":"u",
"11":"u",
"12":"u",
"13":"u",
"14":"u",
"15":"u",
"16":"u",
"17":"u",
"18":"u",
"19":"u",
"20":"u",
"21":"u",
"22":"u",
"23":"u",
"24":"u",
"25":"u",
"26":"u"
},
"chrome":{
"4":"u",
"5":"u",
"6":"u",
"7":"u",
"8":"u",
"9":"u",
"10":"u",
"11":"u",
"12":"u",
"13":"u",
"14":"u",
"15":"u",
"16":"u",
"17":"u",
"18":"u",
"19":"u",
"20":"u",
"21":"u",
"22":"u",
"23":"u",
"24":"u",
"25":"u",
"26":"u",
"27":"u",
"28":"u",
"29":"u",
"30":"u",
"31":"u",
"32":"u"
},
"safari":{
"3.1":"u",
"3.2":"u",
"4":"u",
"5":"u",
"5.1":"u",
"6":"u",
"7":"u"
},
"opera":{
"9":"u",
"9.5-9.6":"u",
"10.0-10.1":"u",
"10.5":"u",
"10.6":"u",
"11":"u",
"11.1":"u",
"11.5":"u",
"11.6":"u",
"12":"u",
"12.1":"u",
"15":"u",
"16":"u",
"17":"u",
"18":"u"
},
"ios_saf":{
"3.2":"u",
"4.0-4.1":"u",
"4.2-4.3":"u",
"5.0-5.1":"u",
"6.0-6.1":"u",
"7.0":"u"
},
"op_mini":{
"5.0-7.0":"u"
},
"android":{
"2.1":"u",
"2.2":"u",
"2.3":"u",
"3":"u",
"4":"u",
"4.1":"u",
"4.2-4.3":"u"
},
"bb":{
"7":"u",
"10":"u"
},
"op_mob":{
"10":"u",
"11":"u",
"11.1":"u",
"11.5":"u",
"12":"u",
"12.1":"u",
"0":"u"
},
"and_chr":{
"0":"u"
},
"and_ff":{
"0":"u"
},
"ie_mob":{
"10":"u"
}
},
"notes":"Sample notes for feature, explain partial support here",
"usage_perc_y":0,
"usage_perc_a":0,
"ucprefix":false,
"parent":"parentfeatureid",
"keywords":"example,keywords",
"shown":false
}
3 changes: 3 additions & 0 deletions validator/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.6
Loading

0 comments on commit 46af7af

Please sign in to comment.