diff --git a/lib/rules/object-alt.json b/lib/rules/object-alt.json
index c5502d4c42..9e8d1366c1 100644
--- a/lib/rules/object-alt.json
+++ b/lib/rules/object-alt.json
@@ -14,7 +14,6 @@
},
"all": [],
"any": [
- "has-visible-text",
"aria-label",
"aria-labelledby",
"non-empty-title",
diff --git a/test/integration/rules/object-alt/object-alt.html b/test/integration/rules/object-alt/object-alt.html
index dd244e1871..dd50e7cbb7 100644
--- a/test/integration/rules/object-alt/object-alt.html
+++ b/test/integration/rules/object-alt/object-alt.html
@@ -1,18 +1,13 @@
-
-
-
+
+
this object has text
-
-
-
+
+
+
+
-
-
-
-
+
diff --git a/test/integration/rules/object-alt/object-alt.json b/test/integration/rules/object-alt/object-alt.json
index 36514678c4..74effa8fd2 100644
--- a/test/integration/rules/object-alt/object-alt.json
+++ b/test/integration/rules/object-alt/object-alt.json
@@ -10,14 +10,5 @@
["#violation6"],
["#violation7"]
],
- "passes": [
- ["#pass1"],
- ["#pass2"],
- ["#pass3"],
- ["#pass4"],
- ["#pass5"],
- ["#pass6"],
- ["#pass7"],
- ["#pass8"]
- ]
+ "passes": [["#pass1"], ["#pass2"], ["#pass3"], ["#pass4"], ["#pass5"]]
}
diff --git a/test/integration/virtual-rules/object-alt.js b/test/integration/virtual-rules/object-alt.js
index f6f53a28eb..dae093762a 100644
--- a/test/integration/virtual-rules/object-alt.js
+++ b/test/integration/virtual-rules/object-alt.js
@@ -64,7 +64,7 @@ describe('object-alt', function() {
assert.lengthOf(results.incomplete, 0);
});
- it('should pass for visible text content', function() {
+ it('should fail for visible text content', function() {
var node = new axe.SerialVirtualNode({
nodeName: 'object'
});
@@ -77,20 +77,20 @@ describe('object-alt', function() {
var results = axe.runVirtualRule('object-alt', node);
- assert.lengthOf(results.passes, 1);
- assert.lengthOf(results.violations, 0);
+ assert.lengthOf(results.passes, 0);
+ assert.lengthOf(results.violations, 1);
assert.lengthOf(results.incomplete, 0);
});
- it('should incomplete when alt and children are missing', function() {
+ it('should fail when alt and children are missing', function() {
var results = axe.runVirtualRule('object-alt', {
nodeName: 'object',
attributes: {}
});
assert.lengthOf(results.passes, 0);
- assert.lengthOf(results.violations, 0);
- assert.lengthOf(results.incomplete, 1);
+ assert.lengthOf(results.violations, 1);
+ assert.lengthOf(results.incomplete, 0);
});
it('should fail children contain no visible text', function() {