Closed Bug 760878 Opened 13 years ago Closed 13 years ago

decomtaminate Get Row / Column Description() on accessible tables

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: tbsaunde, Assigned: capella)

References

Details

(Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++])

Attachments

(1 file)

follow same approach as bug 757504
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Depends on: 760880
Attached patch Patch (v1)Splinter Review
Attachment #632961 - Flags: review?(trev.saunders)
Comment on attachment 632961 [details] [diff] [review] Patch (v1) >+xpcAccessibleTable::GetColumnDescription(PRInt32 aColIdx, nsAString& aDescription) nit, over 80 chars >+XULTreeGridAccessible::ColDescription(PRUint32 aColIdx, nsString& aDescription) > { > aDescription.Truncate(); > >- if (IsDefunct()) >- return NS_ERROR_FAILURE; >- > nsCOMPtr<nsIAccessible> treeColumns; > Accessible::GetFirstChild(getter_AddRefs(treeColumns)); > if (treeColumns) { > nsCOMPtr<nsIAccessible> treeColumnItem; >- treeColumns->GetChildAt(aColumnIndex, getter_AddRefs(treeColumnItem)); >+ treeColumns->GetChildAt(aColIdx, getter_AddRefs(treeColumnItem)); mind filing a bug to clean up this silly com stuff? > var columnDescription; > works = true; > try{ > columnDescription = accTable.getColumnDescription(1); > } > catch (e) { > works = false; > } >- todo(works, "columnDescription should not throw"); >+ is(works, true, "columnDescription should not throw"); well, instead of checking works == true you could get rid of the try / catch. Which would just leave you with the silly test var rowDescription = accTable.getRowDescription(1); a todo for actually implementing this stuff doesn't seem really useful. > > var rowDescription; > works = true; > try { > rowDescription = accTable.getRowDescription(1); > } > catch (e) { > works = false; > } >- todo(works, "rowDescription should not throw"); >+ is(works, true, "rowDescription should not throw"); same note this will change what we return for IAccessibleTable from e_NOTIMPL to S_FALSe, but that seems fine.
Attachment #632961 - Flags: review?(trev.saunders) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: