Closed
Bug 734280
Opened 12 years ago
Closed 12 years ago
[New Tab Page] clean up newtab test suite
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 14
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
Attachments
(1 file)
33.53 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
Summary: [New Tab Page] replace or remove global variable 'cells' in tests → [New Tab Page] clean up newtab test suite
Assignee | ||
Comment 1•12 years ago
|
||
Here's what I did: 1) I removed the callback parameters from Site.block(), Site.unpin() and Drop.drop() because they were only used for testing purposes. Now that we have whenPagesUpdated() we can remove this entirely. 2) The global variables 'cells' and 'cw' are no longer and we now have some convenience functions to replace them. 3) I refactored checkGrid() because that was a hell of a function and can be written much smaller and easier. 4) I added sendDragEvent() and createDragEvent() to head.js to not violate the DRY principle - two tests had custom implementations of these functions.
Attachment #608655 -
Flags: review?(dietrich)
Assignee | ||
Comment 2•12 years ago
|
||
It's all green, whee! https://tbpl.mozilla.org/?tree=Try&rev=2e3c04e73f3f
Comment 3•12 years ago
|
||
Comment on attachment 608655 [details] [diff] [review] patch v1 Review of attachment 608655 [details] [diff] [review]: ----------------------------------------------------------------- yay globals--, r=me
Attachment #608655 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/5b1154a3289c
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 14
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5b1154a3289c
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
You need to log in
before you can comment on or make changes to this bug.
Description
•