4 <title>Test DPub ARIA roles
</title>
6 <link rel=
"stylesheet" type=
"text/css" href=
"chrome://mochikit/content/tests/SimpleTest/test.css" />
8 <script src=
"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"application/javascript"
11 src=
"../common.js"></script>
12 <script type=
"application/javascript"
13 src=
"../role.js"></script>
15 <script type=
"application/javascript">
18 // DPub ARIA role map.
19 testRole(
"doc-abstract", ROLE_SECTION);
20 testRole(
"doc-acknowledgments", ROLE_LANDMARK);
21 testRole(
"doc-afterword", ROLE_LANDMARK);
22 testRole(
"doc-appendix", ROLE_LANDMARK);
23 testRole(
"doc-backlink", ROLE_LINK);
24 testRole(
"doc-biblioentry", ROLE_LISTITEM);
25 testRole(
"doc-bibliography", ROLE_LANDMARK);
26 testRole(
"doc-biblioref", ROLE_LINK);
27 testRole(
"doc-chapter", ROLE_LANDMARK);
28 testRole(
"doc-colophon", ROLE_SECTION);
29 testRole(
"doc-conclusion", ROLE_LANDMARK);
30 testRole(
"doc-cover", ROLE_GRAPHIC);
31 testRole(
"doc-credit", ROLE_SECTION);
32 testRole(
"doc-credits", ROLE_LANDMARK);
33 testRole(
"doc-dedication", ROLE_SECTION);
34 testRole(
"doc-endnote", ROLE_LISTITEM);
35 testRole(
"doc-endnotes", ROLE_LANDMARK);
36 testRole(
"doc-epigraph", ROLE_SECTION);
37 testRole(
"doc-epilogue", ROLE_LANDMARK);
38 testRole(
"doc-errata", ROLE_LANDMARK);
39 testRole(
"doc-example", ROLE_SECTION);
40 testRole(
"doc-footnote", ROLE_FOOTNOTE);
41 testRole(
"doc-foreword", ROLE_LANDMARK);
42 testRole(
"doc-glossary", ROLE_LANDMARK);
43 testRole(
"doc-glossref", ROLE_LINK);
44 testRole(
"doc-index", ROLE_NAVIGATION);
45 testRole(
"doc-introduction", ROLE_LANDMARK);
46 testRole(
"doc-noteref", ROLE_LINK);
47 testRole(
"doc-notice", ROLE_NOTE);
48 testRole(
"doc-pagebreak", ROLE_SEPARATOR);
49 testRole(
"doc-pagelist", ROLE_NAVIGATION);
50 testRole(
"doc-part", ROLE_LANDMARK);
51 testRole(
"doc-preface", ROLE_LANDMARK);
52 testRole(
"doc-prologue", ROLE_LANDMARK);
53 testRole(
"doc-pullquote", ROLE_SECTION);
54 testRole(
"doc-qna", ROLE_SECTION);
55 testRole(
"doc-subtitle", ROLE_HEADING);
56 testRole(
"doc-tip", ROLE_NOTE);
57 testRole(
"doc-toc", ROLE_NAVIGATION);
61 SimpleTest.waitForExplicitFinish();
62 addA11yLoadEvent(doTest);
67 href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1343537"
68 title=
"implement ARIA DPUB extension">
72 <div id=
"content" style=
"display: none"></div>
74 <div id=
"doc-abstract" role=
"doc-abstract">abstract
</div>
75 <div id=
"doc-acknowledgments" role=
"doc-acknowledgments">acknowledgments
</div>
76 <div id=
"doc-afterword" role=
"doc-afterword">afterword
</div>
77 <div id=
"doc-appendix" role=
"doc-appendix">appendix
</div>
78 <div id=
"doc-backlink" role=
"doc-backlink">backlink
</div>
79 <div id=
"doc-biblioentry" role=
"doc-biblioentry">biblioentry
</div>
80 <div id=
"doc-bibliography" role=
"doc-bibliography">bibliography
</div>
81 <div id=
"doc-biblioref" role=
"doc-biblioref">biblioref
</div>
82 <div id=
"doc-chapter" role=
"doc-chapter">chapter
</div>
83 <div id=
"doc-colophon" role=
"doc-colophon">colophon
</div>
84 <div id=
"doc-conclusion" role=
"doc-conclusion">conclusion
</div>
85 <div id=
"doc-cover" role=
"doc-cover">cover
</div>
86 <div id=
"doc-credit" role=
"doc-credit">credit
</div>
87 <div id=
"doc-credits" role=
"doc-credits">credits
</div>
88 <div id=
"doc-dedication" role=
"doc-dedication">dedication
</div>
89 <div id=
"doc-endnote" role=
"doc-endnote">endnote
</div>
90 <div id=
"doc-endnotes" role=
"doc-endnotes">endnotes
</div>
91 <div id=
"doc-epigraph" role=
"doc-epigraph">epigraph
</div>
92 <div id=
"doc-epilogue" role=
"doc-epilogue">epilogue
</div>
93 <div id=
"doc-errata" role=
"doc-errata">errata
</div>
94 <div id=
"doc-example" role=
"doc-example">example
</div>
95 <div id=
"doc-footnote" role=
"doc-footnote">footnote
</div>
96 <div id=
"doc-foreword" role=
"doc-foreword">foreword
</div>
97 <div id=
"doc-glossary" role=
"doc-glossary">glossary
</div>
98 <div id=
"doc-glossref" role=
"doc-glossref">glossref
</div>
99 <div id=
"doc-index" role=
"doc-index">index
</div>
100 <div id=
"doc-introduction" role=
"doc-introduction">introduction
</div>
101 <div id=
"doc-noteref" role=
"doc-noteref">noteref
</div>
102 <div id=
"doc-notice" role=
"doc-notice">notice
</div>
103 <div id=
"doc-pagebreak" role=
"doc-pagebreak">pagebreak
</div>
104 <div id=
"doc-pagelist" role=
"doc-pagelist">pagelist
</div>
105 <div id=
"doc-part" role=
"doc-part">part
</div>
106 <div id=
"doc-preface" role=
"doc-preface">preface
</div>
107 <div id=
"doc-prologue" role=
"doc-prologue">prologue
</div>
108 <div id=
"doc-pullquote" role=
"doc-pullquote">pullquote
</div>
109 <div id=
"doc-qna" role=
"doc-qna">qna
</div>
110 <div id=
"doc-subtitle" role=
"doc-subtitle">subtitle
</div>
111 <div id=
"doc-tip" role=
"doc-tip">tip
</div>
112 <div id=
"doc-toc" role=
"doc-toc">toc
</div>