Skip to content

Commit

Permalink
test(utils): add a test for axe.utils.isXHTML on an XHTML document
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Dec 15, 2017
1 parent 701f72f commit d6dab39
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/full/is-xhtml/is-xhtml.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

describe('axe.utils.isXHTML', function () {
'use strict';

it('should return true on any document that is XHTML', function () {
assert.isTrue(axe.utils.isXHTML(document));
});

});
24 changes: 24 additions & 0 deletions test/integration/full/is-xhtml/is-xhtml.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>axe.utils.isXHTML test</title>
<meta charset="utf-8"/>
<link 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;
</script>
</head>
<body>
<div id="fixture">
</div>
<div id="mocha"></div>
<script src="is-xhtml.js"></script>
<script src="/test/integration/adapter.js"></script>
</body>
</html>

0 comments on commit d6dab39

Please sign in to comment.