Skip to content

Commit 46af7af

Browse files
committed
add json validator and Travis CI file
1 parent e88174a commit 46af7af

11 files changed

+438
-151
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 0.6
4+
script: node validator/validate-jsons.js

features-json/audio.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"links":[
77
{
88
"url":"http://www.jplayer.org/latest/demos/",
9-
"title":"Demos of audio player that uses <audio>"
9+
"title":"Demos of audio player that uses &lt;audio>"
1010
},
1111
{
1212
"url":"http://html5doctor.com/native-audio-in-the-browser/",

features-json/blobbuilder.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
],
1919
"categories":[
20-
null
20+
"JS API"
2121
],
2222
"stats":{
2323
"ie":{

features-json/css3-conditional.json

-145
This file was deleted.

features-json/testfeat.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@
125125
"android":{
126126
"2.1":"n",
127127
"2.2":"n",
128-
"2.3":"",
128+
"2.3":"u",
129129
"3":"n",
130130
"4":"n",
131131
"4.1":"n",
132132
"4.2-4.3":"n"
133133
},
134134
"bb":{
135-
"7":"",
135+
"7":"u",
136136
"10":"n"
137137
},
138138
"op_mob":{

features-json/text-overflow.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"title":"jQuery polyfill for Firefox"
1818
},
1919
{
20-
"url":"http://docs.webplatform.org/wiki/css/properties/text-overflow ",
20+
"url":"http://docs.webplatform.org/wiki/css/properties/text-overflow",
2121
"title":"WebPlatform Docs"
2222
},
2323
{

features-json/webvtt.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"url":"http://dev.opera.com/articles/view/an-introduction-to-webvtt-and-track/",
13-
"title":"An Introduction to WebVTT and <track>"
13+
"title":"An Introduction to WebVTT and &lt;track>"
1414
}
1515
],
1616
"bugs":[

sample-data.json

+167
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"title":"Sample title",
3+
"description":"Sample description",
4+
"spec":"http://example.com/path/to/spec.html",
5+
"status":"wd",
6+
"links":[
7+
{
8+
"url":"http://example.com/path/to/link.html",
9+
"title":"Link title"
10+
}
11+
],
12+
"bugs":[
13+
{
14+
"description":"Sample bug description"
15+
}
16+
],
17+
"categories":[
18+
"CSS",
19+
"JS API"
20+
],
21+
"stats":{
22+
"ie":{
23+
"5.5":"u",
24+
"6":"u",
25+
"7":"u",
26+
"8":"u",
27+
"9":"u",
28+
"10":"u",
29+
"11":"u"
30+
},
31+
"firefox":{
32+
"2":"u",
33+
"3":"u",
34+
"3.5":"u",
35+
"3.6":"u",
36+
"4":"u",
37+
"5":"u",
38+
"6":"u",
39+
"7":"u",
40+
"8":"u",
41+
"9":"u",
42+
"10":"u",
43+
"11":"u",
44+
"12":"u",
45+
"13":"u",
46+
"14":"u",
47+
"15":"u",
48+
"16":"u",
49+
"17":"u",
50+
"18":"u",
51+
"19":"u",
52+
"20":"u",
53+
"21":"u",
54+
"22":"u",
55+
"23":"u",
56+
"24":"u",
57+
"25":"u",
58+
"26":"u"
59+
},
60+
"chrome":{
61+
"4":"u",
62+
"5":"u",
63+
"6":"u",
64+
"7":"u",
65+
"8":"u",
66+
"9":"u",
67+
"10":"u",
68+
"11":"u",
69+
"12":"u",
70+
"13":"u",
71+
"14":"u",
72+
"15":"u",
73+
"16":"u",
74+
"17":"u",
75+
"18":"u",
76+
"19":"u",
77+
"20":"u",
78+
"21":"u",
79+
"22":"u",
80+
"23":"u",
81+
"24":"u",
82+
"25":"u",
83+
"26":"u",
84+
"27":"u",
85+
"28":"u",
86+
"29":"u",
87+
"30":"u",
88+
"31":"u",
89+
"32":"u"
90+
},
91+
"safari":{
92+
"3.1":"u",
93+
"3.2":"u",
94+
"4":"u",
95+
"5":"u",
96+
"5.1":"u",
97+
"6":"u",
98+
"7":"u"
99+
},
100+
"opera":{
101+
"9":"u",
102+
"9.5-9.6":"u",
103+
"10.0-10.1":"u",
104+
"10.5":"u",
105+
"10.6":"u",
106+
"11":"u",
107+
"11.1":"u",
108+
"11.5":"u",
109+
"11.6":"u",
110+
"12":"u",
111+
"12.1":"u",
112+
"15":"u",
113+
"16":"u",
114+
"17":"u",
115+
"18":"u"
116+
},
117+
"ios_saf":{
118+
"3.2":"u",
119+
"4.0-4.1":"u",
120+
"4.2-4.3":"u",
121+
"5.0-5.1":"u",
122+
"6.0-6.1":"u",
123+
"7.0":"u"
124+
},
125+
"op_mini":{
126+
"5.0-7.0":"u"
127+
},
128+
"android":{
129+
"2.1":"u",
130+
"2.2":"u",
131+
"2.3":"u",
132+
"3":"u",
133+
"4":"u",
134+
"4.1":"u",
135+
"4.2-4.3":"u"
136+
},
137+
"bb":{
138+
"7":"u",
139+
"10":"u"
140+
},
141+
"op_mob":{
142+
"10":"u",
143+
"11":"u",
144+
"11.1":"u",
145+
"11.5":"u",
146+
"12":"u",
147+
"12.1":"u",
148+
"0":"u"
149+
},
150+
"and_chr":{
151+
"0":"u"
152+
},
153+
"and_ff":{
154+
"0":"u"
155+
},
156+
"ie_mob":{
157+
"10":"u"
158+
}
159+
},
160+
"notes":"Sample notes for feature, explain partial support here",
161+
"usage_perc_y":0,
162+
"usage_perc_a":0,
163+
"ucprefix":false,
164+
"parent":"parentfeatureid",
165+
"keywords":"example,keywords",
166+
"shown":false
167+
}

validator/.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- 0.6

0 commit comments

Comments
 (0)