Open
Bug 818597
Opened 12 years ago
Updated 2 years ago
Port the basic functionality test for the downloads panel to per-window PB mode
Categories
(Firefox :: Downloads Panel, defect)
Tracking
()
NEW
People
(Reporter: ehsan.akhgari, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
It would be nice to have an automated test for bug 801232.
Reporter | ||
Comment 1•12 years ago
|
||
I tried to take a stab at this. It's harder than it seems since this test is based on fancy generators, and I don't know how to add a step in the middle of it to open a window in private mode, wait for it to be loaded, and then proceed. The magic that I was looking for was something like: function gen_test() { const DownloadData = ... let win = OpenBrowserWindow({private: true}); waitForFocus(func /* not sure what func should be! */, win); yield; // proceed with the rest... } but I couldn't get it to work. Pointers appreciated!
Comment 2•12 years ago
|
||
My suspicion is that there should be some global generator foo that is the result of calling gen_test(), and func should be |function() foo.next()|.
Reporter | ||
Comment 3•12 years ago
|
||
(In reply to comment #2) > My suspicion is that there should be some global generator foo that is the > result of calling gen_test(), and func should be |function() foo.next()|. Isn't that gen_test itself?
Comment 4•12 years ago
|
||
No. The first call to gen_test returns the generator object on which next() should be invoked.
Reporter | ||
Comment 5•12 years ago
|
||
(In reply to comment #4) > No. The first call to gen_test returns the generator object on which next() > should be invoked. OK, I'll let you write the patch since it seems like you know what you're talking about then. :P
Reporter | ||
Comment 6•12 years ago
|
||
Josh, did you mean to work on this?
Comment 7•12 years ago
|
||
Eep. Yes.
Comment 8•12 years ago
|
||
notice the basic functionality test is disabled per bug 767828, we didn't debug that failure yet
Updated•5 years ago
|
Assignee: josh → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•