Skip to content

Commit 7c0d3a6

Browse files
committed
Add 'html2rdf/tests/test-suite/' from commit 'eec351ed0a7e55b4aa4e657945d0ecb85d40e007'
git-subtree-dir: html2rdf/tests/test-suite git-subtree-mainline: 87b0173 git-subtree-split: eec351e
2 parents 87b0173 + eec351e commit 7c0d3a6

File tree

4,678 files changed

+80277
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,678 files changed

+80277
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Distributed under both the <a href="https://www.w3.org/Consortium/Legal/2008/04-testsuite-license">W3C Test Suite License</a> and the <a href="https://www.w3.org/Consortium/Legal/2008/03-bsd-license">W3C 3-clause BSD License</a>. To contribute to a W3C Test Suite, see the <a href="https://www.w3.org/2004/10/27-testcases">policies and contribution forms</a>.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
---
2+
layout: test-suite
3+
title: "RDFa / Test Suite"
4+
---
5+
<div class="container">
6+
<div class='row'>
7+
<div class='col-md-8'>
8+
<div class='btn-group' data-toggle='buttons' id='host-languages'></div>
9+
</div>
10+
<div class='col-md-4' id='processor'>
11+
<form class="form-inline">
12+
<span class='dropdown'>
13+
<button type='button' class='btn btn-default btn-sm dropdown-toggle' data-toggle='dropdown' aria-haspopup="true" aria-expanded="false">Processor <b class="caret"></b></button>
14+
<ul class='processors dropdown-menu'></ul>
15+
</span>
16+
<input id='processor-url' type='text' class='form-control mb-2 mr-sm-2 mb-sm-0' placeholder='Processor URL'/>
17+
</form>
18+
</div>
19+
</div>
20+
<div class='row'>
21+
<div class='col-md-10'>
22+
<div class='btn-group' data-toggle='buttons-radio' id='versions'></div>
23+
</div>
24+
<div class='col-md-2'>
25+
<button class='btn btn-primary btn-sm' data-loading-text='Running' id='run-all'>Run All Tests</button>
26+
</div>
27+
</div>
28+
<div class='row' id='test-progress'>
29+
<div class='col-md-10'>
30+
<div class='progress progress-success'>
31+
<div class='bar'></div>
32+
</div>
33+
</div>
34+
<div class='col-md-2'>
35+
<div class='test-status'>
36+
<div>Total: <span class="test-total"></span></div>
37+
<div>Passed: <span class="test-passed"></span></div>
38+
<div>Failed: <span class="test-failed"></span></div>
39+
<div class='btn-group' id='earl'>
40+
<a class='btn btn-primary btn-sm show' href='#'>EARL Report</a>
41+
<a class='btn btn-primary btn-sm dropdown-toggle' data-toggle='dropdown' href='#' aria-haspopup="true" aria-expanded="false"><span class="caret"></span></a>
42+
<ul class='dropdown-menu'>
43+
<li><a class='show' href='#'>Show</a></li>
44+
<li><a class='source' href='#'>Source</a></li>
45+
</ul>
46+
</div>
47+
</div>
48+
</div>
49+
</div>
50+
<div class='row'>
51+
<h2>Overview</h2>
52+
<noscript>
53+
<p>WARNING: You need Javascript enabled to use this web page!</p>
54+
</noscript>
55+
<p>The RDFa Test Suite provides an interactive mechanism to check the conformance of an RDFa processor and SPARQL query engine. This service is intended for anybody that wants to see how RDFa works as well as developers that want to do conformance testing on their own RDFa/SPARQL implementations.</p>
56+
<p>There are several things that you can do on this web page:</p>
57+
<ul>
58+
<li>To run a unit test, click on the <button class='btn btn-primary btn-sm'>Test</button> link.</li>
59+
<li>To see the details of a unit test, click on the <button class='btn btn-info btn-sm'>details</button> link.</li>
60+
<li>You can execute every unit test by clicking on the <button class='btn btn-primary btn-sm'>Run All Tests</button> button.</li>
61+
<li>After running all tests, you can generate an <a href="">EARL Report</a> using the <button class='btn btn-primary btn-sm'>EARL Report</button> button.</li>
62+
</ul>
63+
<p>So that the test suite can access the processor to request resources, please be sure to add <code>Access-Control-Allow-Origin: *</code> to returned HTTP headers.</p>
64+
<p class="text-warning">Due to differences in how browsers implement XMLHTTPRequest, some tests may not run properly on browsers other than WebKit or Firefox.</p>
65+
<p>See <a href="{{ base_url }}/test-suite/suite-details">this page</a> for more information on the design of the test suite and how to create a processor end-point.</p>
66+
</div>
67+
<div class='row'>
68+
<h2>
69+
Status
70+
</h2>
71+
<ul>
72+
<li>These tests are in active development by the <a href='http://www.w3.org/2010/02/rdfa/'>RDF Web Applications Working Group</a> at the <a href='http://www.w3c.org'>World Wide Web Consortium</a>
73+
</li>
74+
<li>These tests may be used to check conformance for an RDFa 1.1 processor.
75+
</li>
76+
<li>The tests are subject to change at any point between now and June 2011.
77+
</li>
78+
<li>All bugs, suggestions and thoughts about The RDFa Test Suite should be sent to the <a href='http://lists.w3.org/Archives/Public/public-rdfa-wg/'>RDFa Working Group mailing list.</a>
79+
</li>
80+
</ul>
81+
</div>
82+
<div id='tests'></div>
83+
<script id='test-loading' type='text/template'>
84+
<div class="row">
85+
<div class="span12">
86+
<h3>Test Manifest Loading</h3>
87+
<p>This could take a while.</p>
88+
</div>
89+
</div>
90+
</script>
91+
92+
<!-- / Templates for Underscore.js rendering -->
93+
<!-- / Bits inside of "<%= %>" are expanded in Javascript context, not Haml -->
94+
<script id='test-template' type='text/template'>
95+
<div class='row'>
96+
<div class='col-md-12'>
97+
<div class='row'>
98+
<div class='col-md-1'>
99+
<button class='btn btn-primary btn-sm test' data-loading-text='Running'>Test</button>
100+
</div>
101+
<div class='col-md-8'>
102+
<span class='test-num'>Test <%= num %>:</span>
103+
<span class='description'><%= description %> <%= negativeTest %></span>
104+
</div>
105+
<div class='col-md-3 pull-right'>
106+
<button class='btn btn-info btn-sm details' data-complete-text='details' data-loading-text='Loading details ...'>details</button>
107+
<button class='btn btn-info btn-sm source' data-complete-text='source' data-loading-text='Loading tests ...'>source</button>
108+
</div>
109+
</div>
110+
</div>
111+
</div>
112+
</script>
113+
<script id='details-template' type='text/template'>
114+
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
115+
<span aria-hidden="true">&times;</span>
116+
</button>
117+
<h3>Purpose</h3>
118+
<p><%= purpose %></p>
119+
<h3>Source Document</h3>
120+
<pre><div class="scrollable-text"><%- docText %></div></pre>
121+
<em class='docUrl'>Source <a class='window alert-link'><%= docUrl %></a></em>
122+
<h3>Turtle (Reference Implementation Triples)</h3>
123+
<pre><div class="scrollable-text"><%- referenceText %></div></pre>
124+
<h3>Extracted</h3>
125+
<pre><div class="scrollable-text"><%- extractedText %></div></pre>
126+
<em class='extractedUrl'>Source <a class='window alert-link'><%= extractedUrl %></a></em>
127+
<h3>SPARQL Test<%= expected %></h3>
128+
<pre><div class="scrollable-text"><%- sparqlText %></div></pre>
129+
<em class='sparql_url'>Source <a class='windowa lert-link'><%= sparqlUrl %></a></em>
130+
</script>
131+
<script id='earl-report-template' type='text/template'><div about='http://rdfa.info/test-suite/' prefix='earl: http://www.w3.org/ns/earl# doap: http://usefulinc.com/ns/doap# rdfatest: http://rdfa.info/vocabs/rdfa-test# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#' typeof='earl:Software'>
132+
<h3>
133+
<a href='http://rdfa.info/' property='doap:name' rel='doap:homepage'>RDFa Test Suite</a>
134+
</h3>
135+
<p>
136+
Report on <a class='href processorURL' typeof='earl:TestSubject'><span property='doap:name'><%= processorName %></span>.</a>
137+
</p>
138+
<p>
139+
Passed <%= passed %> out of <%= total %> test cases ( <%= passed * 100 / total %>%).
140+
</p>
141+
<div class='rel version'>
142+
RDFa Version <%= version %>.
143+
<div class='rel hostLanguage' id='items'>
144+
Host Language: <%= hostLanguage %>.
145+
</div>
146+
</div>
147+
</script>
148+
<script id='earl-item-template' type='text/template'>
149+
<h4>
150+
Test <span property='dc:identifier'><%= num %>:</span> <span property='mf:name'><%= description %></span>
151+
</h4>
152+
<p property='rdfs:comment'><%= purpose %></p>
153+
<div typeof='earl:Assertion'>
154+
<p property='earl:result' typeof='earl:TestResult'>
155+
<span property='earl:assertedBy' resource=''>
156+
Result:
157+
<strong class='resource outcome' property='earl:outcome' resource=''><%= result %></strong>
158+
</span>
159+
</p>
160+
</div>
161+
</script>
162+
</div>

0 commit comments

Comments
 (0)