Bug 1361770 - todo mochitest for aria-owns element removed from DOM, r=davidb, marcoz

This commit is contained in:
Alexander Surkov 2017-05-08 09:17:48 -04:00
Родитель 51c1306c76
Коммит 0e96856c5e
1 изменённых файлов: 60 добавлений и 0 удалений

Просмотреть файл

@ -676,6 +676,58 @@
}
}
/**
* Put ARIA owned child back when ARIA owner removed.
*/
function test10_removeARIAOwner()
{
this.eventSeq = [
new invokerChecker(EVENT_HIDE, getAccessible('t10_owner'))
];
this.invoke = () => {
let tree =
{ SECTION: [ // t10_container
{ SECTION: [ // t10_owner
{ ENTRY: [] } // t10_child
] }
] };
testAccessibleTree('t10_container', tree);
getNode('t10_owner').remove();
}
this.getID = () => {
return 'Put aria owned child back when aria owner removed';
}
}
function test10_finishTest()
{
this.eventSeq = [
new invokerChecker(EVENT_REORDER, 't10_container')
];
this.invoke = () => {
// trigger a tree update.
getNode('t10_container').append(document.createElement('p'));
}
this.finalCheck = () => {
let tree =
{ SECTION: [ // t10_container
// { ENTRY: [] }, // t10_child
{ PARAGRAPH: [] }
] };
testAccessibleTree('t10_container', tree);
todo(false, 'Input accessible has be moved back in the tree');
}
this.getID = () => {
return `Put aria owned child back when aria owner removed (finish test)`;
}
}
////////////////////////////////////////////////////////////////////////////
// Test
////////////////////////////////////////////////////////////////////////////
@ -728,6 +780,9 @@
gQueue.push(new test9_setARIAOwns());
gQueue.push(new test9_finish());
gQueue.push(new test10_removeARIAOwner());
gQueue.push(new test10_finishTest());
gQueue.invoke(); // SimpleTest.finish() will be called in the end
}
@ -792,6 +847,11 @@
</div>
<iframe id="t9_container"></iframe>
<div id="t10_container">
<div id="t10_owner" aria-owns="t10_child"></div>
<input id="t10_child">
</div>
</body>
</html>