Commits

Gordon Hemsley  committed 2d1fbcc

Add test for --dump-refs.

  • Participants
  • Parent commits d7dcfb0

Comments (0)

Files changed (4)

File tests/ref-dump.html

+<!DOCTYPE html><meta charset=utf-8><a href=#refsFOO>[FOO]</a>
+<a class=informative href=#refsBAR>[BAR]</a>
+<div id=anolis-references><dl><dt id=refsBAR>[BAR]
+<dd>(Non-normative) <cite><a href=http://bar.spec.example.org/>Bar Specification</a></cite>, John Q. Doe. XMPL.
+
+<dt id=refsFOO>[FOO]
+<dd><cite><a href=http://foo.spec.example.org/>Foo Standard</a></cite>, Jane W. Smith. XMPL.
+
+</dl></div>
+

File tests/ref-dump.options

+{
+  "processes": ["refs"],
+  "xref": "tests/xref"
+}

File tests/ref-dump.src.html

+<!DOCTYPE html>
+<span data-anolis-ref>FOO</span>
+<span data-anolis-ref class=informative>BAR</span>
+<div id=anolis-references></div>
+

File tests/xref/references.json

+{
+  "BAR": {
+    "href": "http://bar.spec.example.org/",
+    "title": "Bar Specification",
+    "authors": [ "John Q. Doe" ],
+    "publisher": "XMPL"
+  },
+  "FOO": {
+    "href": "http://foo.spec.example.org/",
+    "title": "Foo Standard",
+    "authors": [ "Jane W. Smith" ],
+    "publisher": "XMPL"
+  }
+}