summaryrefslogtreecommitdiff
path: root/accessible
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-11 23:17:47 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-11 23:17:47 +0000
commitd2ff1e79053928ac733be9b1b9f7aaa6b16cb996 (patch)
treeb40d7888b732fa4f8941e0fc0d8eff0e439b984e /accessible
parente1a3191f232684bab7a03025e932537bc463b52a (diff)
downloadaura-central-d2ff1e79053928ac733be9b1b9f7aaa6b16cb996.tar.gz
Issue mcp-graveyard/UXP%1543 - Align <img> with no src to the updated spec.
Diffstat (limited to 'accessible')
-rw-r--r--accessible/tests/mochitest/jsat/test_traversal.html4
-rw-r--r--accessible/tests/mochitest/tree/test_invalid_img.xhtml4
2 files changed, 4 insertions, 4 deletions
diff --git a/accessible/tests/mochitest/jsat/test_traversal.html b/accessible/tests/mochitest/jsat/test_traversal.html
index 533e9d89f..e2c4ff418 100644
--- a/accessible/tests/mochitest/jsat/test_traversal.html
+++ b/accessible/tests/mochitest/jsat/test_traversal.html
@@ -83,7 +83,7 @@
'listitem-2-3']);
queueTraversalSequence(gQueue, docAcc, TraversalRules.Graphic, null,
- ['image-2', 'image-3']);
+ ['image-1', 'image-2', 'image-3']);
queueTraversalSequence(gQueue, docAcc, TraversalRules.Link, null,
['link-0', 'link-1', 'link-2', 'link-3']);
@@ -117,7 +117,7 @@
'1. Scheme', '2. Racket', '3. Clojure',
'4. Standard Lisp', 'link-0', ' Lisp',
'checkbox-1-5', ' LeLisp', '• JavaScript',
- 'heading-5', 'image-2', 'image-3',
+ 'heading-5', 'image-1', 'image-2', 'image-3',
'Not actually an image', 'link-1', 'anchor-1',
'link-2', 'anchor-2', 'link-3', '3', '1', '4',
'1', 'Sunday', 'M', 'Week 1', '3', '4', '7', '2',
diff --git a/accessible/tests/mochitest/tree/test_invalid_img.xhtml b/accessible/tests/mochitest/tree/test_invalid_img.xhtml
index 2079c86ee..f7c29fb8f 100644
--- a/accessible/tests/mochitest/tree/test_invalid_img.xhtml
+++ b/accessible/tests/mochitest/tree/test_invalid_img.xhtml
@@ -20,8 +20,8 @@
document.getElementsByTagName("img")[0].firstChild.data = "2";
var accTree = {
- role: ROLE_TEXT,
- children: [ { role: ROLE_TEXT_LEAF } ]
+ role: ROLE_GRAPHIC,
+ children: []
};
testAccessibleTree("the_img", accTree);
SimpleTest.finish();