Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
add new test 0332
Browse files Browse the repository at this point in the history
  • Loading branch information
scor committed Oct 2, 2013
1 parent 42eca20 commit bcf834b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2704,3 +2704,14 @@ white space
test:informationResourceResults <test-cases/0331.sparql>;
test:purpose "Tests @datatype is used instead of @lang when @datatype is not empty, and @content is used for the value (e.g. annotating a language with human and machine readable text).";
test:specificationReference "N.A." .

<test-cases/0332> dc:contributor "Stéphane Corlosquet";
dc:title "Empty @datatype doesn't override inherited @lang, with @content";
a test:TestCase;
rdfatest:rdfaVersion "rdfa1.1";
test:classification test:required;
rdfatest:hostLanguage "xml", "xhtml1", "html4", "html5", "xhtml5";
test:informationResourceInput <test-cases/0332.html>;
test:informationResourceResults <test-cases/0332.sparql>;
test:purpose "Tests @lang is used instead of @datatype when @datatype is empty, and @content is used for the value (e.g. annotating a language with human and machine readable text).";
test:specificationReference "7.5 step 11" .
5 changes: 5 additions & 0 deletions tests/0332.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PREFIX dcterms: <http://purl.org/dc/terms/>

ASK WHERE {
[ dcterms:language "af"@en ]
}
7 changes: 7 additions & 0 deletions tests/0332.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{"dcterms": "http://purl.org/dc/terms/"}
<head>
<title>Test 0332</title>
</head>
<body lang="en">
<div property="dcterms:language" datatype="" content="af">Afrikaans</div>
</body>

0 comments on commit bcf834b

Please sign in to comment.