Skip to content

Commit 99eee96

Browse files
author
gabe
committed
now working
1 parent e40333b commit 99eee96

File tree

3 files changed

+346
-3
lines changed

3 files changed

+346
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"tests/*.js"
1919
],
2020
"scripts": {
21-
"test": "mocha tests/ --reporter @digitalbazaar/mocha-w3c-interop-reporter --reporter-options abstract=\"$PWD/abstract.hbs\",reportDir=\"$PWD/reports\",respec=\"$PWD/respecConfig.json\",title=\"VC JSON Schema Test Suite\",suiteLog='./suite.log' --timeout 1500000 --preserve-symlinks",
21+
"test": "mocha tests/ --reporter @digitalbazaar/mocha-w3c-interop-reporter --reporter-options abstract=\"$PWD/abstract.hbs\",reportDir=\"$PWD/reports\",respec=\"$PWD/respecConfig.json\",title=\"VC JSON Schema Test Suite\",suiteLog='./reports/suite.log' --timeout 150000 --preserve-symlinks",
2222
"lint": "eslint ."
2323
},
2424
"engines": {

reports/index.html

Lines changed: 344 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ <h2> Conformance Testing Results </h2>
129129
Total tests 3
130130
</p>
131131
<p>
132-
These tests were run on <time>24 August 2023 at 5:38 pm UTC</time>
132+
These tests were run on <time>24 August 2023 at 5:56 pm UTC</time>
133133
</p>
134134
<section class="informative" id="Key">
135135
<h3>Key</h3>
@@ -152,6 +152,349 @@ <h3>Key</h3>
152152
</section>
153153
<section id="conformance">
154154
<!--- This will take the tests and display them as matrices -->
155+
<section class="informative" id="JSON Schema 2019-09 - JsonSchema">
156+
<h2>JSON Schema 2019-09 - JsonSchema</h2>
157+
<style>
158+
.no-wrap {
159+
white-space: nowrap;
160+
}
161+
td.optional {
162+
background-color: #b9b7b7;
163+
}
164+
.text-right {
165+
text-align: right;
166+
}
167+
.text-left {
168+
text-align: left;
169+
}
170+
.text-center, th.text-center {
171+
text-align: center;
172+
}
173+
.qr-code {
174+
margin-left: 25px;
175+
}
176+
.row {
177+
display: flex;
178+
justify-content: space-between;
179+
align-items: center;
180+
}
181+
.small-font {
182+
font-size: 0.75rem;
183+
}
184+
.highlight-on-hover:hover {
185+
background-color: yellow;
186+
cursor: default;
187+
}
188+
.highlight-on-hover:hover + .relative-pos > .err {
189+
display: block;
190+
}
191+
pre, code.hljs {
192+
overflow: auto;
193+
}
194+
.relative-pos {
195+
position: relative;
196+
width: 0.5rem;
197+
height: 0.5rem;
198+
z-index: 1;
199+
}
200+
.relative-pos:hover > .err {
201+
display: block;
202+
}
203+
</style>
204+
<div class="row">
205+
<table class="simple">
206+
<thead>
207+
<th width="20%">
208+
<div class="text-right small-font">
209+
Implementation &#8658;
210+
</div>
211+
<div class="text-left small-font">
212+
<span>&#8659;</span><span>Test Name</span>
213+
</div>
214+
</th>
215+
<th class="no-wrap small-font text-center">tbd</th>
216+
</thead>
217+
<tbody>
218+
<tr>
219+
<!--This is the name of the test-->
220+
<td class="subtest">1 - Passes sanity tests</td>
221+
<!--These contain if the test passed, failed, or was skipped-->
222+
<td class="failed not-optional highlight-on-hover text-center">
223+
<div class= "highlight-on-hover"></div>
224+
<div class="relative-pos">
225+
<style>
226+
.hide {
227+
display: none;
228+
}
229+
.err {
230+
position: relative;
231+
z-index: 1;
232+
width: 50rem;
233+
right: calc(0% + 15rem);
234+
background: rgba(0, 0, 0, 0.0);
235+
}
236+
.no-space-around {
237+
margin: 0;
238+
padding: 0;
239+
}
240+
pre {
241+
width: 75%;
242+
white-space: pre-line;
243+
word-break: break-all;
244+
margin: 0;
245+
padding: 0;
246+
background: white;
247+
}
248+
code > span.hljs-attr {
249+
margin-left: 1rem;
250+
}
251+
</style>
252+
<span class="err hide no-space-around">
253+
<pre>{
254+
"name": "SyntaxError",
255+
"message": "Unexpected end of JSON input",
256+
"stack": "SyntaxError: Unexpected end of JSON input\n at JSON.parse (<anonymous>)\n at checkTestResult (file:///Users/gcohen/Development/vc-json-schema-test-suite/tests/testutil.js:60:21)\n at Context.<anonymous> (file:///Users/gcohen/Development/vc-json-schema-test-suite/tests/jsonschema.js:28:26)\n at process.processImmediate (node:internal/timers:478:21)"
257+
}</pre>
258+
</span>
259+
</div>
260+
</td>
261+
</tr>
262+
</tbody>
263+
</table>
264+
</div>
265+
<div>
266+
<div class="flex-center">
267+
<div class="row">
268+
</div>
269+
<div class="">
270+
</div>
271+
</div>
272+
</div>
273+
</section>
274+
<section class="informative" id="JSON Schema 2020-12 - JsonSchema">
275+
<h2>JSON Schema 2020-12 - JsonSchema</h2>
276+
<style>
277+
.no-wrap {
278+
white-space: nowrap;
279+
}
280+
td.optional {
281+
background-color: #b9b7b7;
282+
}
283+
.text-right {
284+
text-align: right;
285+
}
286+
.text-left {
287+
text-align: left;
288+
}
289+
.text-center, th.text-center {
290+
text-align: center;
291+
}
292+
.qr-code {
293+
margin-left: 25px;
294+
}
295+
.row {
296+
display: flex;
297+
justify-content: space-between;
298+
align-items: center;
299+
}
300+
.small-font {
301+
font-size: 0.75rem;
302+
}
303+
.highlight-on-hover:hover {
304+
background-color: yellow;
305+
cursor: default;
306+
}
307+
.highlight-on-hover:hover + .relative-pos > .err {
308+
display: block;
309+
}
310+
pre, code.hljs {
311+
overflow: auto;
312+
}
313+
.relative-pos {
314+
position: relative;
315+
width: 0.5rem;
316+
height: 0.5rem;
317+
z-index: 1;
318+
}
319+
.relative-pos:hover > .err {
320+
display: block;
321+
}
322+
</style>
323+
<div class="row">
324+
<table class="simple">
325+
<thead>
326+
<th width="20%">
327+
<div class="text-right small-font">
328+
Implementation &#8658;
329+
</div>
330+
<div class="text-left small-font">
331+
<span>&#8659;</span><span>Test Name</span>
332+
</div>
333+
</th>
334+
<th class="no-wrap small-font text-center">tbd</th>
335+
</thead>
336+
<tbody>
337+
<tr>
338+
<!--This is the name of the test-->
339+
<td class="subtest">1 - Passes sanity tests</td>
340+
<!--These contain if the test passed, failed, or was skipped-->
341+
<td class="passed not-optional highlight-on-hover text-center">
342+
<div class= "highlight-on-hover"></div>
343+
<div class="relative-pos">
344+
<style>
345+
.hide {
346+
display: none;
347+
}
348+
.err {
349+
position: relative;
350+
z-index: 1;
351+
width: 50rem;
352+
right: calc(0% + 15rem);
353+
background: rgba(0, 0, 0, 0.0);
354+
}
355+
.no-space-around {
356+
margin: 0;
357+
padding: 0;
358+
}
359+
pre {
360+
width: 75%;
361+
white-space: pre-line;
362+
word-break: break-all;
363+
margin: 0;
364+
padding: 0;
365+
background: white;
366+
}
367+
code > span.hljs-attr {
368+
margin-left: 1rem;
369+
}
370+
</style>
371+
</div>
372+
</td>
373+
</tr>
374+
</tbody>
375+
</table>
376+
</div>
377+
<div>
378+
<div class="flex-center">
379+
<div class="row">
380+
</div>
381+
<div class="">
382+
</div>
383+
</div>
384+
</div>
385+
</section>
386+
<section class="informative" id="JSON Schema Draft-7 - JsonSchema">
387+
<h2>JSON Schema Draft-7 - JsonSchema</h2>
388+
<style>
389+
.no-wrap {
390+
white-space: nowrap;
391+
}
392+
td.optional {
393+
background-color: #b9b7b7;
394+
}
395+
.text-right {
396+
text-align: right;
397+
}
398+
.text-left {
399+
text-align: left;
400+
}
401+
.text-center, th.text-center {
402+
text-align: center;
403+
}
404+
.qr-code {
405+
margin-left: 25px;
406+
}
407+
.row {
408+
display: flex;
409+
justify-content: space-between;
410+
align-items: center;
411+
}
412+
.small-font {
413+
font-size: 0.75rem;
414+
}
415+
.highlight-on-hover:hover {
416+
background-color: yellow;
417+
cursor: default;
418+
}
419+
.highlight-on-hover:hover + .relative-pos > .err {
420+
display: block;
421+
}
422+
pre, code.hljs {
423+
overflow: auto;
424+
}
425+
.relative-pos {
426+
position: relative;
427+
width: 0.5rem;
428+
height: 0.5rem;
429+
z-index: 1;
430+
}
431+
.relative-pos:hover > .err {
432+
display: block;
433+
}
434+
</style>
435+
<div class="row">
436+
<table class="simple">
437+
<thead>
438+
<th width="20%">
439+
<div class="text-right small-font">
440+
Implementation &#8658;
441+
</div>
442+
<div class="text-left small-font">
443+
<span>&#8659;</span><span>Test Name</span>
444+
</div>
445+
</th>
446+
<th class="no-wrap small-font text-center">tbd</th>
447+
</thead>
448+
<tbody>
449+
<tr>
450+
<!--This is the name of the test-->
451+
<td class="subtest">1 - Passes sanity tests</td>
452+
<!--These contain if the test passed, failed, or was skipped-->
453+
<td class="passed not-optional highlight-on-hover text-center">
454+
<div class= "highlight-on-hover"></div>
455+
<div class="relative-pos">
456+
<style>
457+
.hide {
458+
display: none;
459+
}
460+
.err {
461+
position: relative;
462+
z-index: 1;
463+
width: 50rem;
464+
right: calc(0% + 15rem);
465+
background: rgba(0, 0, 0, 0.0);
466+
}
467+
.no-space-around {
468+
margin: 0;
469+
padding: 0;
470+
}
471+
pre {
472+
width: 75%;
473+
white-space: pre-line;
474+
word-break: break-all;
475+
margin: 0;
476+
padding: 0;
477+
background: white;
478+
}
479+
code > span.hljs-attr {
480+
margin-left: 1rem;
481+
}
482+
</style>
483+
</div>
484+
</td>
485+
</tr>
486+
</tbody>
487+
</table>
488+
</div>
489+
<div>
490+
<div class="flex-center">
491+
<div class="row">
492+
</div>
493+
<div class="">
494+
</div>
495+
</div>
496+
</div>
497+
</section>
155498
</section>
156499
</body>
157500
</html>

tests/jsonschema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ schemaVersions.forEach((schemaVersion) => {
1414
{version: schemaVersionName, type: VcJsonSchemaTypes.JsonSchema});
1515
const implNames = impls.map((i) => i.name);
1616
this.matrix = true;
17-
this.mreport = true;
17+
this.report = true;
1818
this.implemented = [...implNames];
1919
this.rowLabel = 'Test Name';
2020
this.columnLabel = 'Implementation';

0 commit comments

Comments
 (0)