|
| 1 | +--- |
| 2 | +layout: test-suite |
| 3 | +title: "RDFa / Test Suite" |
| 4 | +--- |
| 5 | +<div class="container"> |
| 6 | + <div class='row'> |
| 7 | + <div class='span6'> |
| 8 | + <div class='btn-group' data-toggle='buttons-radio' id='host-languages'></div> |
| 9 | + </div> |
| 10 | + <div class='span6' id='processor'> |
| 11 | + <div class='row'> |
| 12 | + <div class='span2 dropdown'> |
| 13 | + <button class='btn dropdown-toggle' data-toggle='dropdown'>Processor <b class="caret"></b></button> |
| 14 | + <ul class='processors dropdown-menu'></ul> |
| 15 | + </div> |
| 16 | + <div class='span4'> |
| 17 | + <form> |
| 18 | + <input class='search-query span4' id='processor-url' placeholder='Processor URL' type='text'/> |
| 19 | + </form> |
| 20 | + </div> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + <div class='row'> |
| 25 | + <div class='span10'> |
| 26 | + <div class='btn-group' data-toggle='buttons-radio' id='versions'></div> |
| 27 | + </div> |
| 28 | + <div class='span2'> |
| 29 | + <button autocomplete='off' class='btn btn-primary' data-loading-text='Running' id='run-all'>Run All Tests</button> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + <div class='row' id='test-progress'> |
| 33 | + <div class='span10'> |
| 34 | + <div class='progress progress-success'> |
| 35 | + <div class='bar'></div> |
| 36 | + </div> |
| 37 | + </div> |
| 38 | + <div class='span2'> |
| 39 | + <div class='test-status'> |
| 40 | + <div>Total: <span class="test-total"></span></div> |
| 41 | + <div>Passed: <span class="test-passed"></span></div></div> |
| 42 | + <div>Failed: <span class="test-failed"></span></div></div> |
| 43 | + <div class='btn-group' id='earl'> |
| 44 | + <a class='btn btn-primary show' href='#'>EARL Report</a> |
| 45 | + <a class='btn btn-primary dropdown-toggle' data-toggle='dropdown' href='#'><span class="caret"></span></a> |
| 46 | + <ul class='dropdown-menu'> |
| 47 | + <li><a class='show' href='#'>Show</a></li> |
| 48 | + <li><a class='source' href='#'>Source</a></li> |
| 49 | + </ul> |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <div class='row'> |
| 55 | + <h2>Overview</h2> |
| 56 | + <noscript> |
| 57 | + <p>WARNING: You need Javascript enabled to use this web page!</p> |
| 58 | + </noscript> |
| 59 | + <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> |
| 60 | + <p>There are several things that you can do on this web page:</p> |
| 61 | + <ul> |
| 62 | + <li>To run a unit test, click on the <button class='btn btn-primary'>Test</button> link.</li> |
| 63 | + <li>To see the details of a unit test, click on the <button class='btn btn-info'>details</button> link.</li> |
| 64 | + <li>You can execute every unit test by clicking on the <button class='btn btn-primary'>Run All Tests</button> button.</li> |
| 65 | + <li>After running all tests, you can generate an <a href="">EARL Report</a> using the <button class='btn btn-primary'>EARL Report</button> button.</li> |
| 66 | + </ul> |
| 67 | + </div> |
| 68 | + <div class='row'> |
| 69 | + <h2> |
| 70 | + Status |
| 71 | + </h2> |
| 72 | + <ul> |
| 73 | + <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> |
| 74 | + </li> |
| 75 | + <li>These tests may be used to check conformance for an RDFa 1.1 processor. |
| 76 | + </li> |
| 77 | + <li>The tests are subject to change at any point between now and June 2011. |
| 78 | + </li> |
| 79 | + <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> |
| 80 | + </li> |
| 81 | + </ul> |
| 82 | + </div> |
| 83 | + <div id='tests'></div> |
| 84 | + <script id='test-loading' type='text/template'> |
| 85 | + <div class="row"> |
| 86 | + <div class="span12"> |
| 87 | + <h3>Test Manifest Loading</h3> |
| 88 | + <p>This could take a while.</p> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </script> |
| 92 | + |
| 93 | + <!-- / Templates for Underscore.js rendering --> |
| 94 | + <!-- / Bits inside of "<%= %>" are expanded in Javascript context, not Haml --> |
| 95 | + <script id='test-template' type='text/template'> |
| 96 | + <div class='row'> |
| 97 | + <div class='span12'> |
| 98 | + <div class='row'> |
| 99 | + <div class='span1'> |
| 100 | + <button autocomplete='off' class='btn btn-primary test' data-loading-text='Running'>Test</button> |
| 101 | + </div> |
| 102 | + <div class='span8'> |
| 103 | + <span class='test-num'>Test <%= num %>:</span> |
| 104 | + <span class='description'><%= description %> <%= negativeTest %></span> |
| 105 | + </div> |
| 106 | + <div class='span3 pull-right'> |
| 107 | + <button autocomplete='off' class='btn btn-info details' data-complete-text='details' data-loading-text='Loading details ...'>details</button> |
| 108 | + <button autocomplete='off' class='btn btn-info source' data-complete-text='source' data-loading-text='Loading tests ...'>source</button> |
| 109 | + </div> |
| 110 | + </div> |
| 111 | + </div> |
| 112 | + </div> |
| 113 | + </script> |
| 114 | + <script id='details-template' type='text/template'> |
| 115 | + <a class='close' data-dismiss='alert'>x</a> |
| 116 | + <h3>Purpose</h3> |
| 117 | + <p><%= purpose %></p> |
| 118 | + <h3>Source Document</h3> |
| 119 | + <pre><div><%- doc_text %></div></pre> |
| 120 | + <em class='doc_url'>Source <a class='window'><%= doc_url %></a></em> |
| 121 | + <h3>Turtle (Reference Implementation Triples)</h3> |
| 122 | + <pre><div><%- ttl_text %></div></pre> |
| 123 | + <h3>Extracted</h3> |
| 124 | + <pre><div><%- extracted_text %></div></pre> |
| 125 | + <em class='extract_url'>Source <a class='window'><%= extract_url %></a></em> |
| 126 | + <h3>SPARQL Test<%= expected %></h3> |
| 127 | + <pre><div><%- sparql_text %></div></pre> |
| 128 | + <em class='sparql_url'>Source <a class='window'><%= sparql_url %></a></em> |
| 129 | + </script> |
| 130 | + <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'> |
| 131 | + <h3> |
| 132 | + <a href='http://rdfa.info/' property='doap:name' rel='doap:homepage'>RDFa Test Suite</a> |
| 133 | + </h3> |
| 134 | + <p> |
| 135 | + Report on <a class='href processorURL' typeof='earl:TestSubject'><span property='doap:name'><%= processorName %></span>.</a> |
| 136 | + </p> |
| 137 | + <p> |
| 138 | + Passed <%= passed %> out of <%= total %> test cases ( <%= passed * 100 / total %>%). |
| 139 | + </p> |
| 140 | + <div class='rel version'> |
| 141 | + RDFa Version <%= version %>. |
| 142 | + <div class='rel hostLanguage' id='items'> |
| 143 | + Host Language: <%= hostLanguage %>. |
| 144 | + </div> |
| 145 | + </div> |
| 146 | + </script> |
| 147 | + <script id='earl-item-template' type='text/template'> |
| 148 | + <h4> |
| 149 | + Test <span property='dc:identifier'><%= num %>:</span> <span property='mf:name'><%= description %></span> |
| 150 | + </h4> |
| 151 | + <p property='rdfs:comment'><%= purpose %></p> |
| 152 | + <div typeof='earl:Assertion'> |
| 153 | + <p property='earl:result' typeof='earl:TestResult'> |
| 154 | + <span property='earl:assertedBy' resource=''> |
| 155 | + Result: |
| 156 | + <strong class='resource outcome' property='earl:outcome' resource=''><%= result %></strong> |
| 157 | + </span> |
| 158 | + </p> |
| 159 | + </div> |
| 160 | + </script> |
| 161 | +</div> |
0 commit comments