Bug 947508 - Correct assertCurrentPage output.
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 06 Dec 2013 16:53:47 -0800
changeset 175036 a7fea61a018c6900dff93d18a5d427fab1795108
parent 175035 445cafa077dc662df612cd258405dbe43f465978
child 175037 fc277a7f8d60b9255d8db654341df3b5fa6a260a
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs947508
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 947508 - Correct assertCurrentPage output.
mobile/android/base/tests/components/AboutHomeComponent.java
--- a/mobile/android/base/tests/components/AboutHomeComponent.java
+++ b/mobile/android/base/tests/components/AboutHomeComponent.java
@@ -40,17 +40,17 @@ public class AboutHomeComponent extends 
         int expectedPageIndex = expectedPage.ordinal();
         if (DeviceHelper.isTablet()) {
             // Left circular shift Page enum since the History tab is moved to the rightmost.
             expectedPageIndex -= 1;
             expectedPageIndex =
                     (expectedPageIndex >= 0) ? expectedPageIndex : Page.values().length - 1;
         }
 
-        assertEquals("The current HomePager page is " + Page.values()[expectedPageIndex],
+        assertEquals("The current HomePager page is " + expectedPage,
                      expectedPageIndex, getHomePagerView().getCurrentItem());
         return this;
     }
 
     public AboutHomeComponent assertNotVisible() {
         assertFalse("The HomePager is not visible",
                     getHomePagerView().getVisibility() == View.VISIBLE);
         return this;