forked from dequelabs/axe-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lint): corrected Prettier warnings in XHTML files
- Loading branch information
1 parent
f1699a5
commit a4dd458
Showing
5 changed files
with
246 additions
and
217 deletions.
There are no files selected for viewing
152 changes: 78 additions & 74 deletions
152
test/integration/full/epub-type-has-matching-role/content__.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,94 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
|
||
<head> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:epub="http://www.idpf.org/2007/ops" | ||
xml:lang="en" | ||
> | ||
<head> | ||
<title>epub-type-has-matching-role test</title> | ||
<meta charset="utf8" /> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
/> | ||
<script src="/node_modules/mocha/mocha.js"></script> | ||
<script src="/node_modules/chai/chai.js"></script> | ||
<script src="/axe.js"></script> | ||
<script> | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
</head> | ||
<body> | ||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
|
||
<section id="sec" epub:type="cover"> | ||
<img src="image_001.jpg" alt="A beautiful cover" role="doc-cover"/> | ||
</section> | ||
<section id="sec" epub:type="cover"> | ||
<img src="image_001.jpg" alt="A beautiful cover" role="doc-cover" /> | ||
</section> | ||
|
||
<!-- Passes: --> | ||
<!-- pass #1: non-epub type --> | ||
<ol id="pass1" type="1"> | ||
<li>item 1</li> | ||
</ol> | ||
<!-- pass #2: type has matching role --> | ||
<div id="pass2" epub:type="notice" role="doc-notice">notice</div> | ||
<!-- pass #3: type has no defined matching role --> | ||
<div id="pass3" epub:type="bridgehead">hello</div> | ||
<!-- pass #4-#5: types matching the implicit roles --> | ||
<dd id="pass4" epub:type="glossdef">definition</dd> | ||
<dfn id="pass6" epub:type="glossterm">definition</dfn> | ||
<figure id="pass5" epub:type="figure"></figure> | ||
<!-- Passes: --> | ||
<!-- pass #1: non-epub type --> | ||
<ol id="pass1" type="1"> | ||
<li>item 1</li> | ||
</ol> | ||
<!-- pass #2: type has matching role --> | ||
<div id="pass2" epub:type="notice" role="doc-notice">notice</div> | ||
<!-- pass #3: type has no defined matching role --> | ||
<div id="pass3" epub:type="bridgehead">hello</div> | ||
<!-- pass #4-#5: types matching the implicit roles --> | ||
<dd id="pass4" epub:type="glossdef">definition</dd> | ||
<dfn id="pass6" epub:type="glossterm">definition</dfn> | ||
<figure id="pass5" epub:type="figure"></figure> | ||
|
||
<!-- Fails: --> | ||
<!-- fail #1: missing role --> | ||
<div id="fail1" epub:type="notice">notice</div> | ||
<!-- fail #2: non-matching role --> | ||
<div id="fail2" epub:type="notice" role="doc-tip">notice</div> | ||
<!-- fail #3: missing role for a type in a list --> | ||
<div id="fail3" epub:type="foo:bar notice">notice</div> | ||
<!-- Fails: --> | ||
<!-- fail #1: missing role --> | ||
<div id="fail1" epub:type="notice">notice</div> | ||
<!-- fail #2: non-matching role --> | ||
<div id="fail2" epub:type="notice" role="doc-tip">notice</div> | ||
<!-- fail #3: missing role for a type in a list --> | ||
<div id="fail3" epub:type="foo:bar notice">notice</div> | ||
|
||
<nav epub:type="landmarks" id="id-landmarks"> | ||
<ol> | ||
<!-- pass: epub:type/ARIA mapping shouldn't be checked in the landmarks nav --> | ||
<li><a id="pass0" href="nav__.xhtml" epub:type="chapter">content</a></li> | ||
</ol> | ||
</nav> | ||
<nav epub:type="landmarks" id="id-landmarks"> | ||
<ol> | ||
<!-- pass: epub:type/ARIA mapping shouldn't be checked in the landmarks nav --> | ||
<li> | ||
<a id="pass0" href="nav__.xhtml" epub:type="chapter">content</a> | ||
</li> | ||
</ol> | ||
</nav> | ||
|
||
<section id="ok1" role="doc-bibliography" epub:type="bibliography"> | ||
<ul> | ||
<!-- <li id="deprecated1" role="doc-biblioentry"></li> --> | ||
<li id="deprecated1_" epub:type="biblioentry"></li> | ||
</ul> | ||
</section> | ||
<section id="ok2" role="doc-bibliography" epub:type="bibliography"> | ||
<ul> | ||
<!-- <li><p id="deprecated2" role="doc-biblioentry"></p></li> --> | ||
<li><p id="deprecated2_" epub:type="biblioentry"></p></li> | ||
</ul> | ||
</section> | ||
<section id="ok3" role="doc-endnotes" epub:type="endnotes"> | ||
<ul> | ||
<!-- <li id="deprecated3" role="doc-endnote"></li> --> | ||
<li id="deprecated3_" epub:type="endnote"></li> | ||
</ul> | ||
</section> | ||
<section id="ok4" role="doc-endnotes" epub:type="endnotes"> | ||
<ul> | ||
<!-- <li><p id="deprecated4" role="doc-endnote"></p></li> --> | ||
<li><p id="deprecated4_" epub:type="endnote"></p></li> | ||
</ul> | ||
</section> | ||
<section id="ok1" role="doc-bibliography" epub:type="bibliography"> | ||
<ul> | ||
<!-- <li id="deprecated1" role="doc-biblioentry"></li> --> | ||
<li id="deprecated1_" epub:type="biblioentry"></li> | ||
</ul> | ||
</section> | ||
<section id="ok2" role="doc-bibliography" epub:type="bibliography"> | ||
<ul> | ||
<!-- <li><p id="deprecated2" role="doc-biblioentry"></p></li> --> | ||
<li><p id="deprecated2_" epub:type="biblioentry"></p></li> | ||
</ul> | ||
</section> | ||
<section id="ok3" role="doc-endnotes" epub:type="endnotes"> | ||
<ul> | ||
<!-- <li id="deprecated3" role="doc-endnote"></li> --> | ||
<li id="deprecated3_" epub:type="endnote"></li> | ||
</ul> | ||
</section> | ||
<section id="ok4" role="doc-endnotes" epub:type="endnotes"> | ||
<ul> | ||
<!-- <li><p id="deprecated4" role="doc-endnote"></p></li> --> | ||
<li><p id="deprecated4_" epub:type="endnote"></p></li> | ||
</ul> | ||
</section> | ||
|
||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="epub-type-has-matching-role.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="epub-type-has-matching-role.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
</html> |
62 changes: 34 additions & 28 deletions
62
test/integration/full/epub-type-has-matching-role/nav__.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,45 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
<head> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:epub="http://www.idpf.org/2007/ops" | ||
xml:lang="en" | ||
> | ||
<head> | ||
<title>epub-type-has-matching-role cover test</title> | ||
<meta charset="utf8" /> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
/> | ||
<script src="/node_modules/mocha/mocha.js"></script> | ||
<script src="/node_modules/chai/chai.js"></script> | ||
<script src="/axe.js"></script> | ||
<script> | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
</script> | ||
</head> | ||
<body> | ||
<nav epub:type="toc" role="doc-toc" id="id-toc"> | ||
<ol> | ||
<li><a href="content__.xhtml">content</a></li> | ||
</ol> | ||
</nav> | ||
<nav epub:type="landmarks" id="id-landmarks"> | ||
<ol> | ||
<!-- pass: epub:type/ARIA mapping shouldn't be checked in the landmarks nav --> | ||
<li><a id="pass1" href="content__.xhtml" epub:type="chapter">content</a></li> | ||
</ol> | ||
</nav> | ||
</head> | ||
<body> | ||
<nav epub:type="toc" role="doc-toc" id="id-toc"> | ||
<ol> | ||
<li><a href="content__.xhtml">content</a></li> | ||
</ol> | ||
</nav> | ||
<nav epub:type="landmarks" id="id-landmarks"> | ||
<ol> | ||
<!-- pass: epub:type/ARIA mapping shouldn't be checked in the landmarks nav --> | ||
<li> | ||
<a id="pass1" href="content__.xhtml" epub:type="chapter">content</a> | ||
</li> | ||
</ol> | ||
</nav> | ||
|
||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="epub-type-has-matching-role-nav.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="epub-type-has-matching-role-nav.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en"> | ||
|
||
<head> | ||
<html | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:epub="http://www.idpf.org/2007/ops" | ||
xml:lang="en" | ||
> | ||
<head> | ||
<title>pagebreak-label test</title> | ||
<meta charset="utf8" /> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
rel="stylesheet" | ||
type="text/css" | ||
href="/node_modules/mocha/mocha.css" | ||
/> | ||
<script src="/node_modules/mocha/mocha.js"></script> | ||
<script src="/node_modules/chai/chai.js"></script> | ||
<script src="/axe.js"></script> | ||
<script> | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
mocha.setup({ | ||
timeout: 10000, | ||
ui: 'bdd' | ||
}); | ||
var assert = chai.assert; | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
</head> | ||
<body> | ||
<h1>Loomings</h1> | ||
<p>Call me Ishmael.</p> | ||
|
||
<span id="p1" role="doc-pagebreak" title="p1"/> | ||
<span id="p2" epub:type="pagebreak" title="p2"/> | ||
<span id="p3" role="doc-pagebreak"/> | ||
<span id="p4" epub:type="pagebreak"/> | ||
<span id="p1" role="doc-pagebreak" title="p1" /> | ||
<span id="p2" epub:type="pagebreak" title="p2" /> | ||
<span id="p3" role="doc-pagebreak" /> | ||
<span id="p4" epub:type="pagebreak" /> | ||
|
||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="pagebreak-label.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
<div id="mocha"></div> | ||
<script src="/test/testutils.js"></script> | ||
<script src="pagebreak-label.js"></script> | ||
<script src="/test/integration/adapter.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.