summaryrefslogtreecommitdiff
path: root/features/xref.feature
diff options
context:
space:
mode:
Diffstat (limited to 'features/xref.feature')
-rw-r--r--features/xref.feature37
1 files changed, 37 insertions, 0 deletions
diff --git a/features/xref.feature b/features/xref.feature
new file mode 100644
index 00000000..dcb66528
--- /dev/null
+++ b/features/xref.feature
@@ -0,0 +1,37 @@
+# language: en
+Feature: Cross References
+ In order to create links to other sections
+ As a writer
+ I want to be able to use a cross reference macro
+
+
+ Scenario: Create a cross reference from an AsciiDoc cell to a section
+ Given the AsciiDoc source
+ """
+ |===
+ a|See <<_install>>
+ |===
+
+ == Install
+
+ Instructions go here.
+ """
+ When it is rendered using the html backend
+ Then the output should match the HTML structure
+ """
+ table.tableblock.frame-all.grid-all style='width:100%; '
+ colgroup
+ col style='width:100%;'
+ '
+ tbody
+ tr
+ td.tableblock.halign-left.valign-top
+ div
+ .paragraph: p
+ 'See
+ a href='#_install' Install
+ .sect1
+ h2#_install Install
+ .sectionbody
+ .paragraph: p Instructions go here.
+ """