aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/reportOnSampleText.json
blob: af4e2b8e8990f0c91fb7788e93153b57f7380921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 'name': 'reportOnSampleText',
  'description': 'test',
  'rules': [ { 'name': 'Test rule',
               'description': 'An empty test rule',
               'rule': function() {
                  fiveui.query('p').each(
                    function(idx, elt) {
                      if ($(elt).text().indexOf('Sample text') != -1) {
                        report('test error', elt);
                      }
                    });
               }
             } ]
}