From b94c3562325c2e74bccb68c56dd10a1a5dad4791 Mon Sep 17 00:00:00 2001 From: Rogan Creswick Date: Fri, 14 Jun 2013 18:37:06 -0700 Subject: minor cleanup of example data --- exampleData/frames/dyniframetest.html | 34 ----------------------------- exampleData/frames/frametest.html | 32 --------------------------- exampleData/frames/iframetest.html | 12 ---------- exampleData/mutation/dommutation.html | 20 ----------------- exampleData/ruleSets/basic/emptyHeadings.js | 11 +++++----- 5 files changed, 6 insertions(+), 103 deletions(-) delete mode 100644 exampleData/frames/dyniframetest.html delete mode 100644 exampleData/frames/frametest.html delete mode 100644 exampleData/frames/iframetest.html delete mode 100644 exampleData/mutation/dommutation.html (limited to 'exampleData') diff --git a/exampleData/frames/dyniframetest.html b/exampleData/frames/dyniframetest.html deleted file mode 100644 index 9808014..0000000 --- a/exampleData/frames/dyniframetest.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - -

this document will contain iFrames

-
-
- - diff --git a/exampleData/frames/frametest.html b/exampleData/frames/frametest.html deleted file mode 100644 index df457de..0000000 --- a/exampleData/frames/frametest.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - diff --git a/exampleData/frames/iframetest.html b/exampleData/frames/iframetest.html deleted file mode 100644 index 449ff5e..0000000 --- a/exampleData/frames/iframetest.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - -

This document contains iFrames

-

Here is an iframe:

- -
-

Here is another iframe:

- - - diff --git a/exampleData/mutation/dommutation.html b/exampleData/mutation/dommutation.html deleted file mode 100644 index 875a1e3..0000000 --- a/exampleData/mutation/dommutation.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - -

This document will contain iFrames

-
-
- - diff --git a/exampleData/ruleSets/basic/emptyHeadings.js b/exampleData/ruleSets/basic/emptyHeadings.js index 4d2db46..dbc8a1e 100644 --- a/exampleData/ruleSets/basic/emptyHeadings.js +++ b/exampleData/ruleSets/basic/emptyHeadings.js @@ -1,12 +1,13 @@ exports.name = "Don't use empty headings"; -exports.description = 'Empty headings confuse layout'; + +exports.description = "Empty headings confuse layout"; + exports.rule = - function() { - var that = this; - fiveui.query(':header').each( + function(report) { + $5(':header').each( function(i, elt) { if ($(elt).text() == '') { - that.report('Heading is empty', elt); + report.error('Heading is empty', elt); } } ); -- cgit v1.2.3