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)
Core
Disability Access APIs
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)
11.97 KB,
patch
|
tbsaunde
:
review+
|
Details | Diff | Splinter Review |
follow same approach as bug 757504
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #632961 -
Flags: review?(trev.saunders)
Reporter | ||
Comment 2•13 years ago
|
||
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+
Assignee | ||
Comment 3•13 years ago
|
||
Assignee | ||
Comment 4•13 years ago
|
||
Target Milestone: --- → mozilla16
Comment 5•13 years ago
|
||
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.
Description
•