Closed
Bug 582677
Opened 15 years ago
Closed 15 years ago
Test for dragging and dropping item from one group to another group
Categories
(Firefox Graveyard :: Panorama, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 4.0b5
People
(Reporter: raymondlee, Assigned: raymondlee)
References
Details
Attachments
(1 file, 3 obsolete files)
No description provided.
Attachment #460935 -
Flags: review?(ian)
Attachment #460935 -
Flags: feedback?(edilee)
| Assignee | ||
Comment 1•15 years ago
|
||
You can run it using:
TEST_PATH=browser/base/content/test/browser_drag_drop_tabcandy_item.js make -C obj-ff-dbg mochitest-browser-chrome
Comment 2•15 years ago
|
||
Comment on attachment 460935 [details] [diff] [review]
v1
Timers are generally bad to have in tests. It will slow down the total time to run tests and be prone to timing issues. Typically these have been avoided by listening to events for when something should have happened. Or if those events don't exist, they're added.
We'll probably want some wrappers around the drag event pattern once we figure out what behavior it should support.
Attachment #460935 -
Flags: feedback?(edilee) → feedback-
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Comment on attachment 460935 [details] [diff] [review]
> v1
>
> Timers are generally bad to have in tests. It will slow down the total time to
> run tests and be prone to timing issues. Typically these have been avoided by
> listening to events for when something should have happened. Or if those events
> don't exist, they're added.
>
> We'll probably want some wrappers around the drag event pattern once we figure
> out what behavior it should support.
Got it. Since we have zoom out/in for Tab Candy and other animations, we will need to add events to notify others when zooming out or in is actually finished for this test.
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Got it. Since we have zoom out/in for Tab Candy and other animations, we will
> need to add events to notify others when zooming out or in is actually finished
> for this test.
You can use the Subscribable interface that's built into Group and TabItem to create those events.
| Assignee | ||
Comment 5•15 years ago
|
||
Attachment #460935 -
Attachment is obsolete: true
Attachment #462408 -
Flags: review?(ian)
Attachment #460935 -
Flags: review?(ian)
| Assignee | ||
Comment 6•15 years ago
|
||
Comment on attachment 462408 [details] [diff] [review]
v1
* Removed all the timeout and using the Subscribable interface in the Group.
* Custom events are fired when tab view is shown and hidden which would also solve bug 583182
Comment 7•15 years ago
|
||
Comment on attachment 462408 [details] [diff] [review]
v1
Looks great! Raymond, please apply.
I see that you've done some clean up as well... very cool. One of the benefits of writing tests! :)
Attachment #462408 -
Flags: review?(ian)
Attachment #462408 -
Flags: review+
Attachment #462408 -
Flags: feedback?(edilee)
Comment 8•15 years ago
|
||
Comment on attachment 462408 [details] [diff] [review]
v1
>+function simulateDragDrop(srcElement, offsetX, offsetY, contentWindow, callback) {
...
>+ callback.apply();
As mentioned last night, if you think this interface may go asynchronous, keep the callback. But as it is right now, it's all synchronous, so no need for the callback.
Attachment #462408 -
Flags: feedback?(edilee) → feedback+
| Assignee | ||
Comment 9•15 years ago
|
||
| Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 10•15 years ago
|
||
Adding ehsan as a CC, in case he wants to see the history here.
Comment 11•15 years ago
|
||
This test has been temporarily disabled (in browser/base/content/test/tabview/Makefile.in), as it's failing. Please re-enable once it's fixed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•15 years ago
|
||
Mass moving all Tab Candy bugs from Mozilla Labs to Firefox::Tab Candy. Filter the bugmail spam with "tabcandymassmove".
Product: Mozilla Labs → Firefox
Target Milestone: -- → ---
Version: unspecified → Trunk
| Assignee | ||
Comment 13•15 years ago
|
||
Attachment #467335 -
Flags: review?(dolske)
Attachment #467335 -
Flags: feedback?(ian)
Comment 14•15 years ago
|
||
Comment on attachment 467335 [details] [diff] [review]
Re-enable the test with some changes
Looks good.
Attachment #467335 -
Flags: feedback?(ian) → feedback+
Updated•15 years ago
|
QA Contact: tabcandy → tabcandy
| Assignee | ||
Updated•15 years ago
|
Attachment #462408 -
Attachment is obsolete: true
Comment 15•15 years ago
|
||
Comment on attachment 467335 [details] [diff] [review]
Re-enable the test with some changes
>+++ b/browser/base/content/test/tabview/Makefile.in Thu Aug 19 15:35:55 2010 +0800
>@@ -47,8 +47,8 @@
>
> _BROWSER_FILES = \
> browser_tabview_launch.js \
>- $(NULL)
>-# browser_tabview_dragdrop.js \
>+ browser_tabview_dragdrop.js \
>+$(NULL)
Fix the indenting here, $(NULL) should be aligned with everything else.
Attachment #467335 -
Flags: review?(dolske)
Attachment #467335 -
Flags: review+
Attachment #467335 -
Flags: approval2.0+
| Assignee | ||
Comment 16•15 years ago
|
||
Attachment #467335 -
Attachment is obsolete: true
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 17•15 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b5
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•