Closed Bug 1075531 Opened 9 years ago Closed 9 years ago

Robocop failures in larch due to changes in toolbar


(Firefox for Android Graveyard :: General, defect)

Not set


(Not tracked)

Firefox 36


(Reporter: lucasr, Assigned: mcomella)




(3 files, 2 obsolete files)


All of them are related to the fact that we now always show URL instead of title in the URL entry. mcomella, could you have a look?

Maybe the right thing to do here is to adapt the tests to account for the title/url pref?
This was causing some failures in UI test where we compare String to CharSequence.
Attachment #8502142 - Flags: review?(
Confident about this one - try run in comment 5.

I take both a title and url when verifying page titles - NewTablet will use the
latter, phone and old tablet will use the former. Note that we have to adjust
the url in the toolbar: about:home appears as "" and http:// urls drop that

I also included a change to return from testTitleBar immediately if we are on
new tablet because there's no preference change to test. This should be a
separate part, but I don't want to have yet-another-try-push.
Attachment #8502147 - Flags: review?(
Attachment #8502142 - Flags: review?( → review+
Try is closed so here is the (rebased) patch in the meantime. It seems I forgot to get the absolute URL when calling into checkDevice in testClearPrivateData.
Attachment #8502807 - Flags: review?(
Attachment #8502147 - Attachment is obsolete: true
Attachment #8502147 - Flags: review?(
Comment on attachment 8502807 [details] [diff] [review]
Part 2: Check for url in place of page titles on new tablet

Review of attachment 8502807 [details] [diff] [review]:

Works for me.

::: mobile/android/base/tests/
@@ +1,3 @@
>  package org.mozilla.gecko.tests;
>  import org.mozilla.gecko.Actions;
> +import org.mozilla.gecko.NewTabletUI;

Attachment #8502807 - Flags: review?( → review+
I messed up the regex here. This would re-land on top of parts 1 and 2.
Attachment #8505871 - Flags: review?(
Comment on attachment 8505871 [details] [diff] [review]
Part 3: Match page titles by regex in testAboutPage

Review of attachment 8505871 [details] [diff] [review]:

Attachment #8505871 - Flags: review?( → 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.