Closed Bug 725178 Opened 12 years ago Closed 12 years ago

get rid ensureAccessibleTree of common.js

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: surkov, Assigned: Tobbi)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=js])

Attachments

(1 file, 1 obsolete file)

tree is created automatically and no way to force its creation so ensureAccessibleTree makes nothing (http://mxr.mozilla.org/mozilla-central/source/accessible/tests/mochitest/common.js).
patch v1
Assignee: nobody → tobbi.bugs
Status: NEW → ASSIGNED
Attachment #595410 - Flags: review?(surkov.alexander)
Tobias, thanks for taking this!

I looked over your patch, and saw that you didn't take into account yet the instances where this function is actually being called from test files. Grep tells me there are at least three of them that rely on the behavior here. They obviously need to be looked at and adjusted accordingly.
I'll get right on it. I relied on the function only being called in itself. Obviously, I was mistaken. Will use MXR to search through the tree.
Attached patch patch v2Splinter Review
Removing function as well as callers
Attachment #595410 - Attachment is obsolete: true
Attachment #595410 - Flags: review?(surkov.alexander)
Attachment #595463 - Flags: review?(surkov.alexander)
Comment on attachment 595463 [details] [diff] [review]
patch v2

Review of attachment 595463 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with comment fixed

::: accessible/tests/mochitest/events/test_text.html
@@ -51,4 @@
>        this.invoke = function removeChildSpan_invoke()
>        {
>          // remove HTML span, a first child of the node
> -        ensureAccessibleTree(this.DOMNode);

it appears you didn't removed all instances (see removeChildren function)
Attachment #595463 - Flags: review?(surkov.alexander) → review+
Comment on attachment 595463 [details] [diff] [review]
patch v2

>diff --git a/accessible/tests/mochitest/events/test_tree.xul b/accessible/tests/mochitest/events/test_tree.xul
>--- a/accessible/tests/mochitest/events/test_tree.xul
>+++ b/accessible/tests/mochitest/events/test_tree.xul
>@@ -129,11 +129,6 @@
>         gTreeBox.view = gView;
>       }
> 
>-      this.finalCheck = function setTreeView_finalCheck(aEvent)
>-      {
>-        ensureAccessibleTree(gTree);
>-      }
>-

So this gets removed without adding something that actually *does* a real check on the result of this test? I don't think this is right.
(In reply to Marco Zehe (:MarcoZ) from comment #6)
> Comment on attachment 595463 [details] [diff] [review]
> patch v2
> 
> >diff --git a/accessible/tests/mochitest/events/test_tree.xul b/accessible/tests/mochitest/events/test_tree.xul
> >--- a/accessible/tests/mochitest/events/test_tree.xul
> >+++ b/accessible/tests/mochitest/events/test_tree.xul
> >@@ -129,11 +129,6 @@
> >         gTreeBox.view = gView;
> >       }
> > 
> >-      this.finalCheck = function setTreeView_finalCheck(aEvent)
> >-      {
> >-        ensureAccessibleTree(gTree);
> >-      }
> >-
> 
> So this gets removed without adding something that actually *does* a real
> check on the result of this test? I don't think this is right.

don't get confused by 'finalCheck' name, this invoker loads tree view, nothing else.
landed with minor fix in events/test_tree.xul to make mochitest pass https://hg.mozilla.org/integration/mozilla-inbound/rev/dfe18a0ece02
https://hg.mozilla.org/mozilla-central/rev/dfe18a0ece02
Target Milestone: --- → mozilla13
Status: ASSIGNED → RESOLVED
Closed: 12 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: