blob: afd359e5d0687a727071486812a6a2859df3b256 (
plain)
1
2
3
4
5
6
7
8
9
10
|
exports.name = "headingExists";
exports.description = "Page contains at least one heading";
exports.rule = function() {
var headings = fiveui.query(':header');
if (0 == headings.length) {
this.report('No headings found on page');
}
};
|