Closed
Bug 897483
Opened 12 years ago
Closed 12 years ago
[fig] Create new testVisitedPage test to replace original testAllPagesTab.java.in
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: capella, Assigned: lucasr)
References
Details
Attachments
(2 files)
1.59 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
6.61 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
Bug 896576 removed getAllPagesList from BaseTest obviating testAllPagesTab.java.in
This needs to be re-implemented when the new Testing |utility class to get things from about:home| concept is finalized.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → lucasr.at.mozilla
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #789097 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #789098 -
Flags: review?(margaret.leibovic)
Assignee | ||
Comment 3•12 years ago
|
||
FYI: this is a straight port of testAllPagesTab to new about:home.
Comment 4•12 years ago
|
||
Comment on attachment 789097 [details] [diff] [review]
(1/2) Add waitForListToLoad() to BaseTest
Review of attachment 789097 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/tests/BaseTest.java.in
@@ +453,5 @@
> }
> return rc;
> }
>
> + public boolean waitForListToLoad(final ListView listView) {
Please add some documentation about what this does.
@@ +471,5 @@
> + }
> + }, MAX_WAIT_MS);
> +
> + return result;
> + }
Same comment I had in bug 903478... if this is going to just be used to test about:home, perhaps this belongs in AboutHomeTest.
Attachment #789097 -
Flags: review?(margaret.leibovic) → review+
Comment 5•12 years ago
|
||
Comment on attachment 789098 [details] [diff] [review]
(2/2) Add testMostVisitedPage for new about:home
Review of attachment 789098 [details] [diff] [review]:
-----------------------------------------------------------------
Similarly to my comment in bug 903478, we should make sure there's a follow-up filed to clean this up more.
::: mobile/android/base/tests/testMostVisitedPage.java.in
@@ +20,5 @@
> + and long tapping on an item
> +*/
> +
> +public class testMostVisitedPage extends AboutHomeTest {
> + private static ListView listview = null;
Now that we just get the ListView once in testMostVisitedPage and pass it around as a parameter, we could get rid of this.
@@ +31,5 @@
> + public void testMostVisitedPage() {
> + blockForGeckoReady();
> +
> + // load one page so there is something in our history
> + String url = "http://www.arstechnica.com/";//getAbsoluteUrl("/robocop/robocop_big_link.html");
Was there something wrong with the robocop pages? I don't think we'd want to leave this in our test suite.
@@ +87,5 @@
> + mAsserter.is(visible, expectedImages, "Correct number of ImageViews visible");
> + }
> + }
> +
> + private void testContextMenu(ListView list, String url) {
I feel like a good follow-up might be to move all the context menu related testing into its own test, since this looks very similar to the code in your new testMostRecentPage.
Attachment #789098 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to :Margaret Leibovic from comment #4)
> Comment on attachment 789097 [details] [diff] [review]
> (1/2) Add waitForListToLoad() to BaseTest
>
> Review of attachment 789097 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: mobile/android/base/tests/BaseTest.java.in
> @@ +453,5 @@
> > }
> > return rc;
> > }
> >
> > + public boolean waitForListToLoad(final ListView listView) {
>
> Please add some documentation about what this does.
Done.
> @@ +471,5 @@
> > + }
> > + }, MAX_WAIT_MS);
> > +
> > + return result;
> > + }
>
> Same comment I had in bug 903478... if this is going to just be used to test
> about:home, perhaps this belongs in AboutHomeTest.
Done.
Assignee | ||
Comment 7•12 years ago
|
||
Pushed the first patch in order to land the fix for bug 903448:
http://hg.mozilla.org/projects/fig/rev/c67df6233bd1
I'll push the second patch once the test goes green on try.
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Updated•5 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
•