diff --git a/.eslintignore b/.eslintignore index b3e5d0ab6ae2..d6ee3cf3fac4 100644 --- a/.eslintignore +++ b/.eslintignore @@ -9,7 +9,6 @@ obj*/** # below. addon-sdk/** build/** -caps/** chrome/** config/** db/** @@ -78,6 +77,9 @@ browser/extensions/activity-stream/vendor/** # imported from chromium browser/extensions/mortar/** +# caps/ exclusions +caps/tests/mochitest/browser_checkloaduri.js + # devtools/ exclusions devtools/client/canvasdebugger/** devtools/client/commandline/** diff --git a/accessible/tests/mochitest/treeupdate/test_ariaowns.html b/accessible/tests/mochitest/treeupdate/test_ariaowns.html index 8b756bec3d63..8382699653a1 100644 --- a/accessible/tests/mochitest/treeupdate/test_ariaowns.html +++ b/accessible/tests/mochitest/treeupdate/test_ariaowns.html @@ -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 @@ + +