Closed Bug 969922 Opened 10 years ago Closed 10 years ago

Remove fennec_ids.txt usage from Robocop test APK

Categories

(Firefox for Android Graveyard :: Testing, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 30

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(5 files)

This ticket tracks converting all existing uses of fennec_ids.txt to reference Fennec directly, and to stop loading fennec_ids.txt.
Attachment #8372906 - Flags: review?(michael.l.comella)
Attachment #8372907 - Flags: review?(michael.l.comella)
Attachment #8372908 - Flags: review?(michael.l.comella)
Attachment #8372909 - Flags: review?(michael.l.comella)
Attachment #8372910 - Flags: review?(michael.l.comella)
A pleasantly green try build is up at

https://tbpl.mozilla.org/?tree=Try&rev=63f82c0319e0
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Comment on attachment 8372906 [details] [diff] [review]
Pre: Close cursor.

Review of attachment 8372906 [details] [diff] [review]:
-----------------------------------------------------------------

r+ w/ try/finally.

It probably doesn't matter because we'll end the test and kill Fennec when we throw, but better safe than sorry.

::: mobile/android/base/tests/testBrowserProvider.java
@@ +161,5 @@
>          Cursor c = getBookmarkByGuid(MOBILE_FOLDER_GUID);
>          mAsserter.is(c.moveToFirst(), true, "Mobile bookmarks folder is present");
>  
>          mMobileFolderId = c.getLong(c.getColumnIndex(mBookmarksIdCol));
> +        c.close();

`try {} finally { c.close(); }`
Attachment #8372906 - Flags: review?(michael.l.comella) → review+
Attachment #8372907 - Flags: review?(michael.l.comella) → review+
Comment on attachment 8372908 [details] [diff] [review]
Part 2: Replace Driver.findElement(Activity, String) with (Activity, int).

Review of attachment 8372908 [details] [diff] [review]:
-----------------------------------------------------------------

r+ w/ extra R.id usage and comment.

::: mobile/android/base/tests/BaseTest.java
@@ +189,5 @@
>       * Click on the URL bar to focus it and enter editing mode.
>       */
>      protected final void focusUrlBar() {
>          // Click on the browser toolbar to enter editing mode
> +        final View toolbarView = mSolo.getView("browser_toolbar");

Replace "browser_toolbar" with  R.id.browser_toolbar. Similarly below.

::: mobile/android/base/tests/testThumbnails.java
@@ +82,5 @@
>      }
>  
>      private int getTopSiteThumbnailColor(String title) {
> +    	return -1;
> +//        ViewGroup topSites = (ViewGroup) getActivity().findViewById(mTopSitesId);

Add a comment explaining why this is commented out.
Attachment #8372908 - Flags: review?(michael.l.comella) → review+
Comment on attachment 8372909 [details] [diff] [review]
Part 3: Don't use Solo.getView(String).

Review of attachment 8372909 [details] [diff] [review]:
-----------------------------------------------------------------

(In reply to Michael Comella (:mcomella) from comment #8)
> Replace "browser_toolbar" with  R.id.browser_toolbar. Similarly below.

Hee hee, nevermind. :P

r+ w/ unused var removed or used.

::: mobile/android/base/tests/BaseTest.java
@@ +560,5 @@
>                  return true;
>              }
>          }, MAX_WAIT_MS);
>          mAsserter.ok(success, "waiting for add tab view", "add tab view available");
> +        final View addTabView = mSolo.getView(R.id.add_tab);

Unused.
Attachment #8372909 - Flags: review?(michael.l.comella) → review+
Attachment #8372910 - Flags: review?(michael.l.comella) → review+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: