Closed
Bug 708443
Opened 14 years ago
Closed 14 years ago
minor cleanup in animationPolling.js
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: dholbert, Assigned: dholbert)
References
()
Details
Attachments
(2 files)
4.76 KB,
patch
|
jwir3
:
review+
|
Details | Diff | Splinter Review |
1.28 KB,
patch
|
jwir3
:
review+
|
Details | Diff | Splinter Review |
animationPolling.js calls a function "imageLoadCallback" here:
>26 function failTest ()
>27 { imageLoadCallback();
http://mxr.mozilla.org/mozilla-central/source/image/test/mochitest/animationPolling.js?mark=27-27#26
but that function isn't defined anywhere, as shown by this search:
http://mxr.mozilla.org/mozilla-central/search?string=imageLoadCallback
Looks like a typo. Scott, should it be removed, or is there for a reason and we need to make it actually do something?
Assignee | ||
Comment 1•14 years ago
|
||
er I meant "or is _it_ there for a reason"
Assignee | ||
Comment 2•14 years ago
|
||
Looks like this line was added in:
http://hg.mozilla.org/mozilla-central/rev/47131206c09f
and that cset also removed the definition of "imageLoadCallback".
Blocks: 702093
Assignee | ||
Comment 3•14 years ago
|
||
Taking - I noticed a few other things in animationPolling that could use a tweak, too - I'll just post 'em in a combined patch here.
Assignee: nobody → dholbert+bmo
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #579917 -
Flags: review?(sjohnson)
Assignee | ||
Comment 5•14 years ago
|
||
Summary of changes:
- Remove the invalid "imageLoadCallback()" call. (I verified that, in the case of test failure, we currently throw exceptions due to imageLoadCallback not existing -- but with that call removed, we correctly report the failure as "test still doesn't match ref after call #N etc")
- Removed space between function-name and () in a few spots
- Fixed some greater-than-80-characters lines (mostly "compareSnapshots" calls).
- Changed a setTimeout(..., 10) to executeSoon (which does the same thing, basically, without a magic number)
- changed a repeated setTimeout(..., 20) to use currentTest.pollFreq
- fixed comment & variable-name in clause where "reference div" isn't actually a div
Assignee | ||
Updated•14 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Comment 6•14 years ago
|
||
Comment on attachment 579917 [details] [diff] [review]
patch 1 v1
Review of attachment 579917 [details] [diff] [review]:
-----------------------------------------------------------------
Wow, thanks for catching some of these half-line typos. I can't believe it was passing with these.
Attachment #579917 -
Flags: review?(sjohnson) → review+
Assignee | ||
Updated•14 years ago
|
Summary: animationPolling.js calls undefined function "imageLoadCallback()" → minor cleanup in animationPolling.js
Assignee | ||
Comment 7•14 years ago
|
||
Currently animationPolling triggers a lot of debugging screenshots to be printed to mochitest logs.
This patch turns that off (but adds a boolean var so we can toggle it on again if necessary for debugging an issue).
I also added an emacs modeline at the top (copypasted from imgutils.js), so that emacs knows to indent by 2 spaces instead of 4.
Attachment #580143 -
Flags: review?(sjohnson)
Comment 8•14 years ago
|
||
Comment on attachment 580143 [details] [diff] [review]
patch 2 v1: turn off debug output (w/ boolean global), and add emacs mode line
dholbert and I discussed this on IRC. Thanks for doing this, dholbert! r=me.
Attachment #580143 -
Flags: review?(sjohnson) → review+
Assignee | ||
Comment 9•14 years ago
|
||
Landed patch 1 (I gave it a TryServer run overnight last night):
https://hg.mozilla.org/integration/mozilla-inbound/rev/68f0d4831c48
I'll give patch 2 a TryServer sanity-check and then land it later today.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla11
Assignee | ||
Comment 10•14 years ago
|
||
Comment 11•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 12•14 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•