Closed
Bug 1092254
Opened 10 years ago
Closed 10 years ago
Use Solo.waitForCondition under the hood in BaseTest.waitForTest
Categories
(Firefox for Android Graveyard :: Testing, defect)
Tracking
(firefox34 fixed, firefox35 fixed, firefox36 fixed)
RESOLVED
FIXED
Firefox 36
People
(Reporter: mcomella, Assigned: mcomella)
Details
Attachments
(1 file, 1 obsolete file)
2.69 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
waitForCondition will likely be more robust because we don't have to maintain it. e.g. waitForTest might be causing background thread starvation issues in bug 1090618.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8515139 -
Flags: review?(liuche)
Comment 2•10 years ago
|
||
It should be possible to convert clients of waitForTest to use waitForCondition instead, and then we could remove waitForTest entirely.
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Geoff Brown [:gbrown] from comment #2) > It should be possible to convert clients of waitForTest to use > waitForCondition instead, and then we could remove waitForTest entirely. True, but it will take a while and I have other things to do - looks like a good mentored bug (someone had my idea! bug 982797).
Assignee | ||
Comment 4•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=7afc84b44dcc
Comment 5•10 years ago
|
||
Comment on attachment 8515139 [details] [diff] [review] Use Solo.waitForCondition under the hood in BaseTest.waitForTest Review of attachment 8515139 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/tests/BaseTest.java @@ +333,5 @@ > + * @deprecated use {@link #waitForCondition(Condition, int)} instead > + */ > + @Deprecated > + protected final boolean waitForTest(final BooleanTest t, final int timeout) { > + final boolean wasSatisfied = mSolo.waitForCondition(new Condition() { Nit: I would prefer isSatisfied instead of wasSatisfied per general naming convention, but up to you.
Attachment #8515139 -
Flags: review?(liuche) → review+
Assignee | ||
Comment 6•10 years ago
|
||
was -> is
Assignee | ||
Updated•10 years ago
|
Attachment #8515139 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8515382 -
Flags: review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/3ac2eb20194b
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3ac2eb20194b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Updated•10 years ago
|
Flags: needinfo?(ryanvm)
Comment 9•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/180de799976d https://hg.mozilla.org/releases/mozilla-beta/rev/cdd31f8931ae
status-firefox34:
--- → fixed
status-firefox35:
--- → fixed
status-firefox36:
--- → fixed
Flags: needinfo?(ryanvm)
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•