diff --git a/accessible/src/base/nsDocAccessible.cpp b/accessible/src/base/nsDocAccessible.cpp index 88a766be0d0e..67ee32e4df86 100644 --- a/accessible/src/base/nsDocAccessible.cpp +++ b/accessible/src/base/nsDocAccessible.cpp @@ -1114,7 +1114,8 @@ nsDocAccessible::ARIAAttributeChanged(nsIContent* aContent, nsIAtom* aAttribute) // at least until native API comes up with a more meaningful event. if (aAttribute == nsAccessibilityAtoms::aria_grabbed || aAttribute == nsAccessibilityAtoms::aria_dropeffect || - aAttribute == nsAccessibilityAtoms::aria_hidden) { + aAttribute == nsAccessibilityAtoms::aria_hidden || + aAttribute == nsAccessibilityAtoms::aria_sort) { FireDelayedAccessibleEvent(nsIAccessibleEvent::EVENT_OBJECT_ATTRIBUTE_CHANGED, aContent); } diff --git a/accessible/tests/mochitest/events/Makefile.in b/accessible/tests/mochitest/events/Makefile.in index 180570d7bfef..1c099e789eaf 100644 --- a/accessible/tests/mochitest/events/Makefile.in +++ b/accessible/tests/mochitest/events/Makefile.in @@ -51,8 +51,8 @@ _TEST_FILES =\ focus.html \ scroll.html \ test_aria_alert.html \ - test_aria_hidden.html \ test_aria_menu.html \ + test_aria_objattr.html \ test_aria_statechange.html \ test_attrs.html \ test_caretmove.html \ diff --git a/accessible/tests/mochitest/events/test_aria_hidden.html b/accessible/tests/mochitest/events/test_aria_objattr.html similarity index 65% rename from accessible/tests/mochitest/events/test_aria_hidden.html rename to accessible/tests/mochitest/events/test_aria_objattr.html index 25e72833210a..a4810fe1e895 100644 --- a/accessible/tests/mochitest/events/test_aria_hidden.html +++ b/accessible/tests/mochitest/events/test_aria_objattr.html @@ -1,7 +1,7 @@ - Accessible ARIA hidden attribute + Accessible ARIA object attribute changes @@ -43,14 +43,38 @@ } } + function updateSort(aID, aSort) + { + this.node = getNode(aID); + this.accessible = getAccessible(this.node); + + this.eventSeq = [ + new invokerChecker(EVENT_OBJECT_ATTRIBUTE_CHANGED, this.accessible), + ]; + + this.invoke = function updateSort_invoke() + { + this.node.setAttribute("aria-sort", aSort); + } + + this.getID = function updateSort_getID() + { + return "aria-sort for " + aID + " " + aSort; + } + } + + // Debug stuff. + // gA11yEventDumpID = "eventdump"; + // gA11yEventDumpToConsole = true; + function doTests() { - //gA11yEventDumpID = "eventdump"; // debug stuff - gQueue = new eventQueue(); gQueue.push(new hideNode("hideable", "true")); + gQueue.push(new updateSort("sortable", "ascending")); + gQueue.invoke(); // Will call SimpleTest.finish(); } @@ -67,6 +91,12 @@ Mozilla Bug 581096 + + Mozilla Bug 640707 + +

@@ -75,5 +105,6 @@
 
   
Hi
there
+
aria-sort