Closed
Bug 568995
Opened 15 years ago
Closed 14 years ago
Update tests to use waitForClipboard
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3.7a5
People
(Reporter: zpao, Assigned: zpao)
Details
Attachments
(2 files)
3.26 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
2.60 KB,
patch
|
Dolske
:
review+
|
Details | Diff | Splinter Review |
Apart from browser_bug556061.js which is getting fixed in bug 567870, there are 2 tests that I found which should be using waitForClipboard:
browser/base/content/test/browser_bug321000.js
toolkit/components/passwordmgr/test/browser/browser_passwordmgrcopypwd.js
(I know Browser/General isn't exactly right... but it didn't seem worth filing multiple bugs in the right components)
Assignee | ||
Comment 1•15 years ago
|
||
update browser_bug321000.js
* use waitforClipboard
* also removed clearing the clipboard at the end of the test. I know it was added (bug 474081) to see if this was affecting other tests, but it looked like the verdict was that it isn't.
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #448148 -
Flags: review?(dolske)
Updated•15 years ago
|
Attachment #448147 -
Flags: review?(dao) → review+
Comment 3•15 years ago
|
||
Comment on attachment 448147 [details] [diff] [review]
Patch v0.1 (browser_bug321000.js)
>+ waitForClipboard(kTestString, function() cbHelper.copyString(kTestString),
>+ next_test, finish);
nit: function () { cbHelper.copyString(kTestString); }
What you wrote is short for function () { return cbHelper.copyString(kTestString); }, but you don't want to return anything.
You can declare cbHelper right above this, it's not used elsewhere.
Updated•14 years ago
|
Attachment #448148 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Pushed (with nits fixed) http://hg.mozilla.org/mozilla-central/rev/19fda49851ee
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a5
You need to log in
before you can comment on or make changes to this bug.
Description
•