Closed
Bug 899182
Opened 11 years ago
Closed 11 years ago
[fig] Re-implement robocop testBookmark.java.in
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox26 fixed, firefox27 fixed, fennec26+)
RESOLVED
FIXED
Firefox 27
People
(Reporter: capella, Assigned: AdrianT)
References
Details
Attachments
(1 file, 5 obsolete files)
18.51 KB,
patch
|
lucasr
:
review+
|
Details | Diff | Splinter Review |
Bug 896576 removed the getBookmarksList() logic from BaseTest.java.in and disabled this test (which depends on it).
This needs to be re-implemented when the new Testing |utility class to get things from about:home| concept is finalized.
Assignee | ||
Updated•11 years ago
|
QA Contact: adrian.tamas
Assignee | ||
Comment 1•11 years ago
|
||
Added a few new methods in AboutHomeTest to get bookmarks/top bookmarks and to check if bookmarks/top bookmarks are displayed. Not all are used in testBookmarks, but they will be needed in testBookmarksTab. The only issue I had was that getting the view for the bookmark in getDisplayedBookmark(String url) with getView(i,null, bookmarksTabList) caused the clickOnView and longClickOnView not to work for some reason. I get the view with getChildAt but I make sure the view is scrolled to the bottom first so this should not create issues.
Added the new waitForAboutHomeTab method to wait for the tab to be rendered when changing tabs. waitForEnabledText no longer works reliably for me locally on the tablets with the recent changes in about:home
BaseTest.toggleBookmark does not work for me on tablets. Also there were some changes to the Navigation.Bookmark() method at some point which led to it not working anymore. Corrected the device/os verification and now it works.
I re-wrote the testBookmark test, covering the original tests and also adding tests for the Top Bookmarks section.
Attachment #791274 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 2•11 years ago
|
||
removed the openAboutHomeTab fix which was moved to bug 906662
Attachment #791274 -
Attachment is obsolete: true
Attachment #791274 -
Flags: review?(lucasr.at.mozilla)
Attachment #792200 -
Flags: review?(lucasr.at.mozilla)
Updated•11 years ago
|
Assignee: nobody → adrian.tamas
tracking-fennec: --- → ?
Priority: -- → P1
Updated•11 years ago
|
Hardware: ARM → All
Updated•11 years ago
|
tracking-fennec: ? → 26+
Comment 3•11 years ago
|
||
Comment on attachment 792200 [details] [diff] [review]
testBookmark fix v2
Review of attachment 792200 [details] [diff] [review]:
-----------------------------------------------------------------
Needs a rebase to fetch lists by tag instead of using reflection.
Attachment #792200 -
Flags: review?(lucasr.at.mozilla) → review-
Assignee | ||
Comment 4•11 years ago
|
||
Added tags to views in bug 916107, rewrote all methods to work with the tags and only left the getTopBookmark to use reflections since I need the getURl method. Also changed the Navigation.Bookmark method which did not seem to work on pandas because it has the 7"tablet UI which has the bookmark button in the menu and not on the UI.
Attachment #792200 -
Attachment is obsolete: true
Attachment #804460 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 5•11 years ago
|
||
Changes the patch to not rely on a tagged Top Bookmarks view and also to work with the recently integrated DatabaseHelper and StringHelper classes
Attachment #804460 -
Attachment is obsolete: true
Attachment #804460 -
Flags: review?(lucasr.at.mozilla)
Attachment #805258 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 6•11 years ago
|
||
The try run for the last version had some intermittent fails because the bookmarks page content was not rendered in time. Added a wait until the bookmark page content is displayed and pushed a new tryrun: https://tbpl.mozilla.org/?tree=Try&rev=3ba54df36ad2
Attachment #805258 -
Attachment is obsolete: true
Attachment #805258 -
Flags: review?(lucasr.at.mozilla)
Attachment #805345 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 805345 [details] [diff] [review]
testBookmark.patch v4.1
removing the review flag per the chat on irc since the patch will be modified to remove the tests for Top Bookmarks
Attachment #805345 -
Flags: review?(lucasr.at.mozilla)
Assignee | ||
Comment 8•11 years ago
|
||
Removed the top bookmarks part of the test because of the about:home changes. This works locally but a tryrun is pointless now until bug 919516 is fixed
Attachment #805345 -
Attachment is obsolete: true
Attachment #808579 -
Flags: review?(lucasr.at.mozilla)
Comment 9•11 years ago
|
||
Comment on attachment 808579 [details] [diff] [review]
testBookmark.patch
Review of attachment 808579 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
::: mobile/android/base/tests/AboutHomeTest.java.in
@@ +102,5 @@
> + ListAdapter adapter = bookmarksTabList.getAdapter();
> + if (adapter != null) {
> + for (int i = 0; i < adapter.getCount(); i++ ) {
> + // I am unable to click the view taken with getView for some reason so getting the child at i
> + bookmarksTabList.smoothScrollToPosition(i);
This is likely to cause intermittent due to timing issues from the smooth scrolling, no? Not against it, just wondering.
Attachment #808579 -
Flags: review?(lucasr.at.mozilla) → review+
Assignee | ||
Comment 10•11 years ago
|
||
(In reply to Lucas Rocha (:lucasr) from comment #9)
> Comment on attachment 808579 [details] [diff] [review]
> testBookmark.patch
>
> Review of attachment 808579 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Looks good.
>
> ::: mobile/android/base/tests/AboutHomeTest.java.in
> @@ +102,5 @@
> > + ListAdapter adapter = bookmarksTabList.getAdapter();
> > + if (adapter != null) {
> > + for (int i = 0; i < adapter.getCount(); i++ ) {
> > + // I am unable to click the view taken with getView for some reason so getting the child at i
> > + bookmarksTabList.smoothScrollToPosition(i);
>
> This is likely to cause intermittent due to timing issues from the smooth
> scrolling, no? Not against it, just wondering.
I haven't had any issues with it. Usually the scroll is very short for since we don't have long bookmark lists tests.
Comment 11•11 years ago
|
||
Adrian, are you just waiting for someone to push your patch?
Flags: needinfo?(adrian.tamas)
Assignee | ||
Comment 12•11 years ago
|
||
Until bug 919516 is fixed this will be permaorange on pandas. This is why I didn't even bother to do a tryserver run with this. Once bug 919516 is fixed I can do a run with the patch and if everything is ok we can push it.
Flags: needinfo?(adrian.tamas)
Assignee | ||
Comment 13•11 years ago
|
||
Tryrun with the patch for bug 919516 added: https://tbpl.mozilla.org/?tree=Try&rev=7b424127b7c9
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 27
Comment 16•11 years ago
|
||
status-firefox26:
--- → fixed
status-firefox27:
--- → fixed
Comment 17•11 years ago
|
||
Needs bug 919516 first, duh.
https://hg.mozilla.org/releases/mozilla-aurora/rev/6c1ea36a42e6
Whiteboard: [don't uplift until bug 919516 has approval]
Comment 18•11 years ago
|
||
Whiteboard: [don't uplift until bug 919516 has approval]
Updated•4 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
•