UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

35 lines (34 loc) 575 B
<!doctype html> <html> <head> <title>Test Rule error</title> <script src="../../../axe.js"></script> <script> axe._load({ rules: [{ id: 'incomplete-1', selector: '*', none: ['undeffed'] }, { id: 'incomplete-2', selector: '*', none: ['thrower'] }], checks: [{ id: 'undeffed', evaluate: function () { return undefined; } }, { id: 'thrower', evaluate: function () { throw new Error('Check failed to complete'); } }] }); </script> </head> <body> <h1 class="nogo">header 1</h1> </body> </html>