From 765ceca3bf63c1ea99c4060e793d96953582e19a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 11 May 2025 18:47:19 +0200 Subject: add tests derived from draft protocol documentation --- test/block_scope.md | 3 +++ test/block_scope.plain.html | 2 ++ test/block_scope.rdfa.html | 2 ++ test/block_scope_list.md | 3 +++ test/block_scope_list.plain.html | 5 +++++ test/block_scope_list.rdfa.html | 5 +++++ test/ex_paragraph.md | 11 +++++++++++ test/ex_paragraph.plain.html | 6 ++++++ test/ex_paragraph.rdfa.html | 8 ++++++++ test/ex_title_and_list.md | 17 +++++++++++++++++ test/ex_title_and_list.plain.html | 14 ++++++++++++++ test/ex_title_and_list.rdfa.html | 16 ++++++++++++++++ test/span_scope.md | 4 ++++ test/todo/block-cluster_scope.md | 21 +++++++++++++++++++++ test/todo/block-cluster_scope.plain.html | 12 ++++++++++++ test/todo/block-cluster_scope.rdfa.html | 13 +++++++++++++ test/todo/block-siblings_scope.md | 13 +++++++++++++ test/todo/block-siblings_scope.plain.html | 6 ++++++ test/todo/block-siblings_scope.rdfa.html | 10 ++++++++++ test/todo/block-siblings_scope_list.md | 4 ++++ test/todo/block-tree_scope.md | 10 ++++++++++ test/todo/block-tree_scope.plain.html | 6 ++++++ test/todo/block-tree_scope.rdfa.html | 8 ++++++++ test/todo/link_definition_scope.md | 10 ++++++++++ test/todo/link_definition_scope.plain.html | 4 ++++ test/todo/link_definition_scope.rdfa.html | 4 ++++ 26 files changed, 217 insertions(+) create mode 100644 test/block_scope.md create mode 100644 test/block_scope.plain.html create mode 100644 test/block_scope.rdfa.html create mode 100644 test/block_scope_list.md create mode 100644 test/block_scope_list.plain.html create mode 100644 test/block_scope_list.rdfa.html create mode 100644 test/ex_paragraph.md create mode 100644 test/ex_paragraph.plain.html create mode 100644 test/ex_paragraph.rdfa.html create mode 100644 test/ex_title_and_list.md create mode 100644 test/ex_title_and_list.plain.html create mode 100644 test/ex_title_and_list.rdfa.html create mode 100644 test/span_scope.md create mode 100644 test/todo/block-cluster_scope.md create mode 100644 test/todo/block-cluster_scope.plain.html create mode 100644 test/todo/block-cluster_scope.rdfa.html create mode 100644 test/todo/block-siblings_scope.md create mode 100644 test/todo/block-siblings_scope.plain.html create mode 100644 test/todo/block-siblings_scope.rdfa.html create mode 100644 test/todo/block-siblings_scope_list.md create mode 100644 test/todo/block-tree_scope.md create mode 100644 test/todo/block-tree_scope.plain.html create mode 100644 test/todo/block-tree_scope.rdfa.html create mode 100644 test/todo/link_definition_scope.md create mode 100644 test/todo/link_definition_scope.plain.html create mode 100644 test/todo/link_definition_scope.rdfa.html (limited to 'test') diff --git a/test/block_scope.md b/test/block_scope.md new file mode 100644 index 0000000..f2e78e7 --- /dev/null +++ b/test/block_scope.md @@ -0,0 +1,3 @@ +You can give me a ring. {=<#manu>} + +You can give me a ring {=<#manu>}. diff --git a/test/block_scope.plain.html b/test/block_scope.plain.html new file mode 100644 index 0000000..dd96b5c --- /dev/null +++ b/test/block_scope.plain.html @@ -0,0 +1,2 @@ +

You can give me a ring.

+

You can give me a ring {=<#manu>}.

diff --git a/test/block_scope.rdfa.html b/test/block_scope.rdfa.html new file mode 100644 index 0000000..161408d --- /dev/null +++ b/test/block_scope.rdfa.html @@ -0,0 +1,2 @@ +

You can give me a ring.

+

You can give me a ring {=<#manu>}.

diff --git a/test/block_scope_list.md b/test/block_scope_list.md new file mode 100644 index 0000000..9196d4c --- /dev/null +++ b/test/block_scope_list.md @@ -0,0 +1,3 @@ +- Thomas Francart {foaf:name} +- 39 {foaf:age} +- Semantic Web Consultant {rdfs:comment} diff --git a/test/block_scope_list.plain.html b/test/block_scope_list.plain.html new file mode 100644 index 0000000..8f83544 --- /dev/null +++ b/test/block_scope_list.plain.html @@ -0,0 +1,5 @@ + diff --git a/test/block_scope_list.rdfa.html b/test/block_scope_list.rdfa.html new file mode 100644 index 0000000..f8fcd78 --- /dev/null +++ b/test/block_scope_list.rdfa.html @@ -0,0 +1,5 @@ + diff --git a/test/ex_paragraph.md b/test/ex_paragraph.md new file mode 100644 index 0000000..3c233ea --- /dev/null +++ b/test/ex_paragraph.md @@ -0,0 +1,11 @@ +My name is +[Manu Sporny]{:name} +and you can give me a ring via +[1-800-555-0199]{:telephone}. +![](http://manu.sporny.org/images/manu.png){:image} +My favorite animal is the [Liger]{ov:preferredAnimal}. +{=<#manu> .:Person} + +{schema}: @default + +{ov}: http://open.vocab.org/terms/ diff --git a/test/ex_paragraph.plain.html b/test/ex_paragraph.plain.html new file mode 100644 index 0000000..dd76404 --- /dev/null +++ b/test/ex_paragraph.plain.html @@ -0,0 +1,6 @@ +

My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199. + +My favorite animal is the Liger.

diff --git a/test/ex_paragraph.rdfa.html b/test/ex_paragraph.rdfa.html new file mode 100644 index 0000000..82de219 --- /dev/null +++ b/test/ex_paragraph.rdfa.html @@ -0,0 +1,8 @@ +

+My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199. + +My favorite animal is the Liger. +

diff --git a/test/ex_title_and_list.md b/test/ex_title_and_list.md new file mode 100644 index 0000000..5b12b34 --- /dev/null +++ b/test/ex_title_and_list.md @@ -0,0 +1,17 @@ +## {.schema:Event schema:name} + +## Specification meeting + +* Date: [11/10]{schema:startDate} +* Place: [Our office, Street name, Paris]{schema:location} +* Meeting participants: {schema:attendee} + * Alice + * Bob + * [Tim](https://www.wikidata.org/wiki/Q80) +* Description: Some information not annotated + +## Launch party + +(TODO) + +{schema}: @default diff --git a/test/ex_title_and_list.plain.html b/test/ex_title_and_list.plain.html new file mode 100644 index 0000000..1ef3fac --- /dev/null +++ b/test/ex_title_and_list.plain.html @@ -0,0 +1,14 @@ +

Specification meeting

+ +

Launch party

+

(TODO)

diff --git a/test/ex_title_and_list.rdfa.html b/test/ex_title_and_list.rdfa.html new file mode 100644 index 0000000..b3c62d1 --- /dev/null +++ b/test/ex_title_and_list.rdfa.html @@ -0,0 +1,16 @@ +
+

Specification meeting

+ +

Launch party

+

(TODO)

+
diff --git a/test/span_scope.md b/test/span_scope.md new file mode 100644 index 0000000..28ef4d0 --- /dev/null +++ b/test/span_scope.md @@ -0,0 +1,4 @@ +My name is [Manu Sporny]{schema:name}. +My name is **Manu [Sporny]**{schema:name}. +My name is [Manu Sporny] {schema:name}. +My name is Manu Sporny{schema:name}. diff --git a/test/todo/block-cluster_scope.md b/test/todo/block-cluster_scope.md new file mode 100644 index 0000000..342632f --- /dev/null +++ b/test/todo/block-cluster_scope.md @@ -0,0 +1,21 @@ +{.schema:Group} + +# People + +## Manu Sporny + +My name is Manu Sporny. + +## Thomas Francart + +My name is Thomas Francart. + +I once read this: + +> {=<#manu>} +> +> My name is Manu Sporny. +> +> You can give me a ring. + +Should I call him? diff --git a/test/todo/block-cluster_scope.plain.html b/test/todo/block-cluster_scope.plain.html new file mode 100644 index 0000000..c121d82 --- /dev/null +++ b/test/todo/block-cluster_scope.plain.html @@ -0,0 +1,12 @@ +

{.schema:Group}

+

People

+

Manu Sporny

+

My name is Manu Sporny.

+

Thomas Francart

+

My name is Thomas Francart.

+

I once read this:

+
+

My name is Manu Sporny.

+

You can give me a ring.

+
+

Should I call him?

diff --git a/test/todo/block-cluster_scope.rdfa.html b/test/todo/block-cluster_scope.rdfa.html new file mode 100644 index 0000000..7aa3ef0 --- /dev/null +++ b/test/todo/block-cluster_scope.rdfa.html @@ -0,0 +1,13 @@ +
+

People

+

Manu Sporny

+

My name is Manu Sporny.

+

Thomas Francart

+

My name is Thomas Francart.

+

I once read this:

+
+

My name is Manu Sporny.

+

You can give me a ring.

+
+

Should I call him?

+
diff --git a/test/todo/block-siblings_scope.md b/test/todo/block-siblings_scope.md new file mode 100644 index 0000000..3a3bec3 --- /dev/null +++ b/test/todo/block-siblings_scope.md @@ -0,0 +1,13 @@ +# People + +## {.schema:Person} + +## Manu Sporny + +My name is Manu Sporny. + +## Thomas Francart + +My name is Thomas Francart. + +# Animals diff --git a/test/todo/block-siblings_scope.plain.html b/test/todo/block-siblings_scope.plain.html new file mode 100644 index 0000000..8190063 --- /dev/null +++ b/test/todo/block-siblings_scope.plain.html @@ -0,0 +1,6 @@ +

People

+

Manu Sporny

+

My name is Manu Sporny.

+

Thomas Francart

+

My name is Thomas Francart.

+

Animals

diff --git a/test/todo/block-siblings_scope.rdfa.html b/test/todo/block-siblings_scope.rdfa.html new file mode 100644 index 0000000..4002b2d --- /dev/null +++ b/test/todo/block-siblings_scope.rdfa.html @@ -0,0 +1,10 @@ +

People

+
+

Manu Sporny

+

My name is Manu Sporny.

+

+
+

Thomas Francart

+

My name is Thomas Francart.

+
+

Animals

diff --git a/test/todo/block-siblings_scope_list.md b/test/todo/block-siblings_scope_list.md new file mode 100644 index 0000000..90dcbb7 --- /dev/null +++ b/test/todo/block-siblings_scope_list.md @@ -0,0 +1,4 @@ +- {foaf:member} +- Thomas +- Vincent +- Nicolas diff --git a/test/todo/block-tree_scope.md b/test/todo/block-tree_scope.md new file mode 100644 index 0000000..44b1dc4 --- /dev/null +++ b/test/todo/block-tree_scope.md @@ -0,0 +1,10 @@ +# People + +## {=<#manu>} Manu Sporny + +My name is Manu Sporny, +and you can give me a ring. + +## Thomas Francart + +My name is Thomas Francart. diff --git a/test/todo/block-tree_scope.plain.html b/test/todo/block-tree_scope.plain.html new file mode 100644 index 0000000..ed32777 --- /dev/null +++ b/test/todo/block-tree_scope.plain.html @@ -0,0 +1,6 @@ +

People

+

Manu Sporny

+

My name is Manu Sporny, +and you can give me a ring.

+

Thomas Francart

+

My name is Thomas Francart.

diff --git a/test/todo/block-tree_scope.rdfa.html b/test/todo/block-tree_scope.rdfa.html new file mode 100644 index 0000000..a88eb72 --- /dev/null +++ b/test/todo/block-tree_scope.rdfa.html @@ -0,0 +1,8 @@ +

People

+
+

Manu Sporny

+

My name is Manu Sporny, +and you can give me a ring.

+

+

Thomas Francart

+

My name is Thomas Francart.

diff --git a/test/todo/link_definition_scope.md b/test/todo/link_definition_scope.md new file mode 100644 index 0000000..c0acb03 --- /dev/null +++ b/test/todo/link_definition_scope.md @@ -0,0 +1,10 @@ +My name is +[Manu Sporny] +and you can give me a ring via +[1-800-555-0199]. + +[Manu Sporny]: {schema:name} + +[1-800-555-0199]: tel:+1-800-555-0199 + "make a phone call to Manu Sporny" + {schema:telephone} diff --git a/test/todo/link_definition_scope.plain.html b/test/todo/link_definition_scope.plain.html new file mode 100644 index 0000000..ba92f3f --- /dev/null +++ b/test/todo/link_definition_scope.plain.html @@ -0,0 +1,4 @@ +

My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199.

diff --git a/test/todo/link_definition_scope.rdfa.html b/test/todo/link_definition_scope.rdfa.html new file mode 100644 index 0000000..60e8f7a --- /dev/null +++ b/test/todo/link_definition_scope.rdfa.html @@ -0,0 +1,4 @@ +

My name is +Manu Sporny +and you can give me a ring via +1-800-555-0199.

-- cgit v1.2.3