Bug 1460028 - Experimental - Use string literal instead of static variable in SessionTest. r=gbrown
authorJan Henning <jh+bugzilla@buttercookie.de>
Tue, 08 May 2018 21:55:20 +0200
changeset 471565 0fd5996b2d80ca73b08adf55b5e5261c6d334b1b
parent 471564 e4b9cb3abd0724e50ced4d0248649f27ad8be9ac
child 471566 3c5ec0ff49dc7239a6e72d311e04b047ad6d50fc
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1460028
milestone62.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 1460028 - Experimental - Use string literal instead of static variable in SessionTest. r=gbrown Experimentally try using a String literal in case the NullPointerException at that line is caused by some weird class initialisation issue. MozReview-Commit-ID: 1BexpntTBEJ
mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/SessionTest.java
--- a/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/SessionTest.java
+++ b/mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/SessionTest.java
@@ -133,17 +133,17 @@ public abstract class SessionTest extend
 
         /**
          * Callback executed for each forward step of the walk.
          */
         public void goForward() {}
     }
 
     protected Session createTestSession(int selectedTabIndex) {
-        PageInfo home = new PageInfo(StringHelper.STATIC_ABOUT_HOME_URL);
+        PageInfo home = new PageInfo("about:home");
         PageInfo page1 = new PageInfo("page1");
         PageInfo page2 = new PageInfo("page2");
         PageInfo page3 = new PageInfo("page3");
         PageInfo page4 = new PageInfo("page4");
         PageInfo page5 = new PageInfo("page5");
         PageInfo page6 = new PageInfo("page6");
 
         SessionTab tab1 = new SessionTab(0, home, page1, page2);