diff --git a/mobile/android/base/tests/testAllPagesTab.java.in b/mobile/android/base/tests/testAllPagesTab.java.in index 903bc6630a70..19cfba170d1a 100644 --- a/mobile/android/base/tests/testAllPagesTab.java.in +++ b/mobile/android/base/tests/testAllPagesTab.java.in @@ -71,7 +71,7 @@ public class testAllPagesTab extends BaseTest { // This test fails, only when we're running tests // mAsserter.is(host.getCurrentTab(), 0, "All pages tab is selected in tab strip"); - mAsserter.ok(list != null, "checking that all pages list exists", list.toString()); + mAsserter.isnot(list, null, "checking that all pages list exists"); mAsserter.is(list.getChildCount(), 5, "all pages list has 5 children (the default bookmarks)"); final int count = list.getChildCount(); @@ -152,7 +152,7 @@ public class testAllPagesTab extends BaseTest { boolean success = waitForTest(new BooleanTest() { public boolean test() { for (ListView view : views) { - if (view.getTag() == "allPages") { + if (view.getTag().equals("allPages")) { listview = view; return true; } diff --git a/mobile/android/base/tests/testBookmarksTab.java.in b/mobile/android/base/tests/testBookmarksTab.java.in index ee35aa584903..7c9cc06ea9a7 100644 --- a/mobile/android/base/tests/testBookmarksTab.java.in +++ b/mobile/android/base/tests/testBookmarksTab.java.in @@ -60,7 +60,7 @@ public class testBookmarksTab extends BaseTest { list = getBookmarksList(); mSolo.waitForText("Desktop Bookmarks"); - mAsserter.ok(list != null, "checking that bookmarks list exists", list.toString()); + mAsserter.isnot(list, null, "checking that bookmarks list exists"); int count = list.getChildCount(); mAsserter.is(count, 5, "bookmarks list has 5 children (defaults + a folder)"); @@ -207,7 +207,7 @@ public class testBookmarksTab extends BaseTest { boolean success = waitForTest(new BooleanTest() { public boolean test() { for (ListView view : views) { - if (view.getTag() == "bookmarks") { + if (view.getTag().equals("bookmarks")) { list = view; return true; } diff --git a/mobile/android/base/tests/testHistoryTab.java.in b/mobile/android/base/tests/testHistoryTab.java.in index 2ade9585d66e..4272eb8d9fe0 100644 --- a/mobile/android/base/tests/testHistoryTab.java.in +++ b/mobile/android/base/tests/testHistoryTab.java.in @@ -248,7 +248,7 @@ public class testHistoryTab extends PixelTest { public boolean test() { final ArrayList views = mSolo.getCurrentListViews(); for (ListView view : views) { - if (view.getTag() == "history") { + if (view.getTag().equals("history")) { listview = view; return true; }