Closed
Bug 454647
Opened 16 years ago
Closed 16 years ago
fix test_bug368835.xul tests so that TreeInvalidation returns consistent values for event data.
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: MarcoZ, Assigned: surkov)
References
Details
(Keywords: access)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Currently, when run stand-alone, the event data is expected to be null, whereas when run in combination with the other test files, event data is 0.
Assignee | ||
Comment 1•16 years ago
|
||
sounds like worksforme with new test organization
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #364076 -
Flags: review?(marco.zehe)
Assignee | ||
Updated•16 years ago
|
Attachment #364076 -
Flags: review?(david.bolter)
Comment 2•16 years ago
|
||
Comment on attachment 364076 [details] [diff] [review]
patch
General nit:
foo = function() { }; // <--
I like to see a semicolon at the end of function definitions (e.g. where you define this.invoke).
>- var wasCaught = invoker.wasCaught[jdx];
>+ var wasCaught = invoker.wasCaught[idx];
> if (!testFailed)
> testFailed = wasCaught;
>
> ok(!wasCaught,
> msg + "There is unexpected " + typeStr + " event.");
>
> } else {
>- var wasCaught = invoker.wasCaught[jdx];
>+ var wasCaught = invoker.wasCaught[idx];
nit: wasCaught is redeclared unecessarily (via "var")
+ // Makes sure tree children accessibles are created otherwise they won't
+ // be a couse of name changed events.
nit: type "couse" should be "cause" ?
That's all I noticed. Did you run on all platforms?
r=me with these changes, and confirmation of pass on all platforms, and Marco's approval.
Attachment #364076 -
Flags: review?(david.bolter) → review+
Reporter | ||
Updated•16 years ago
|
Attachment #364076 -
Flags: review?(marco.zehe) → review+
Reporter | ||
Comment 3•16 years ago
|
||
Comment on attachment 364076 [details] [diff] [review]
patch
Nice work, thanks! r=me with David's comments fixed.
Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #2)
> (From update of attachment 364076 [details] [diff] [review])
> General nit:
>
> foo = function() { }; // <--
> I like to see a semicolon at the end of function definitions (e.g. where you
> define this.invoke).
do you mean
function constructor()
{
this.func = function bla()
{
}; // <=
}
We didn't use this style in mochitest at all. What is the particular reason to change this?
> nit: wasCaught is redeclared unecessarily (via "var")
nope, the first wasCaught is declared in "if" statement, the second is in "else" statement.
> nit: type "couse" should be "cause" ?
right.
> That's all I noticed. Did you run on all platforms?
I tested it on Windows and Linux. But since this test failed previously I would appreciate if someone of us will retest it as well (sure if Marco didn't perform any tests).
Reporter | ||
Comment 5•16 years ago
|
||
The massive failure why I disabled the file completely a while back seems to have been fixed. We didn't have any problems with re-enabling XUL files over the past couple of weeks.
Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #5)
> The massive failure why I disabled the file completely a while back seems to
> have been fixed. We didn't have any problems with re-enabling XUL files over
> the past couple of weeks.
Mostly I meant this
// XXX see bug 454647 TreeInvalidatedHandlerHelper(aEvent, null, null, 0, 0,
// "nsITreeBoxObject::invalidateColumn");
the reason this bug has been filed.
Reporter | ||
Comment 7•16 years ago
|
||
The tests all pass here as well. I think we're good to go with this!
Comment 8•16 years ago
|
||
(In reply to comment #4)
> (In reply to comment #2)
> > (From update of attachment 364076 [details] [diff] [review] [details])
> > General nit:
> >
> > foo = function() { }; // <--
> > I like to see a semicolon at the end of function definitions (e.g. where you
> > define this.invoke).
>
> do you mean
> function constructor()
> {
> this.func = function bla()
> {
> }; // <=
> }
Yes.
>
> We didn't use this style in mochitest at all. What is the particular reason to
> change this?
Okay, it just caught my eye this time. No need to change if that's our style.
>
> > nit: wasCaught is redeclared unecessarily (via "var")
>
> nope, the first wasCaught is declared in "if" statement, the second is in
> "else" statement.
The potential for redeclaration is still there, but it is only a nit. It isn't harmful :)
r=me ( still :) ) Thanks.
Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #8)
> > We didn't use this style in mochitest at all. What is the particular reason to
> > change this?
>
> Okay, it just caught my eye this time. No need to change if that's our style.
thanks, I got usual to it :)
> > nope, the first wasCaught is declared in "if" statement, the second is in
> > "else" statement.
>
> The potential for redeclaration is still there, but it is only a nit. It isn't
> harmful :)
sorry, still don't see.
Assignee | ||
Comment 10•16 years ago
|
||
with David's nit
Attachment #364076 -
Attachment is obsolete: true
Assignee | ||
Comment 11•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•