-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
641b5e6
commit 028ae51
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
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
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,23 +1,27 @@ | ||
/* global module, asyncTest, expect, start, document, axe */ | ||
/* global QUnit, document, axe */ | ||
|
||
module('axe'); | ||
QUnit.module('axe'); | ||
|
||
asyncTest('should report that good HTML is good', function (assert) { | ||
QUnit.test('should report that good HTML is good', function (assert) { | ||
var n = document.getElementById('working'); | ||
expect(1); | ||
assert.expect(2); | ||
|
||
var done = assert.async(); | ||
axe.run(n, function (err, result) { | ||
assert.equal(err, null); | ||
assert.equal(result.violations.length, 0); | ||
start(); | ||
done(); | ||
}); | ||
}); | ||
|
||
asyncTest('should report that bad HTML is bad', function (assert) { | ||
QUnit.test('should report that bad HTML is bad', function (assert) { | ||
var n = document.getElementById('broken'); | ||
expect(1); | ||
assert.expect(2); | ||
|
||
var done = assert.async(); | ||
axe.run(n, function (err, result) { | ||
assert.equal(err, null); | ||
assert.equal(result.violations.length, 1); | ||
start(); | ||
done(); | ||
}); | ||
}); |