diff --git a/test/checks/aria/valid-attr-value.js b/test/checks/aria/valid-attr-value.js index e2605ecd8b..956c3b496b 100644 --- a/test/checks/aria/valid-attr-value.js +++ b/test/checks/aria/valid-attr-value.js @@ -117,6 +117,10 @@ describe('aria-valid-attr-value', function () { assert.isUndefined( validAttrValueCheck.call(checkContext, null, null, vNode) ); + assert.deepEqual(checkContext._data, { + messageKey: 'controlsWithinPopup', + needsReview: 'aria-controls="test"' + }); }); it('should pass on aria-owns and aria-expanded=false when the element is not in the DOM', function () { diff --git a/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.html b/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.html index 42e60bae4c..1542a403b9 100644 --- a/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.html +++ b/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.html @@ -360,4 +360,7 @@

Possible False Positives

I'm actually valid
I'm not really gone
+
+ May have injected html to control dynamically later, who knows! +
diff --git a/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.json b/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.json index 8fb15e1190..f0b46c6fc4 100644 --- a/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.json +++ b/test/integration/rules/aria-valid-attr-value/aria-valid-attr-value.json @@ -236,6 +236,7 @@ ["#incomplete5"], ["#incomplete6"], ["#incomplete7"], - ["#incomplete8"] + ["#incomplete8"], + ["#incomplete9"] ] }