Bug 927296 - Fix testPrivateBrowsing NullPointerException by waiting for the title placeholder. r=gbrown

This commit is contained in:
Adrian Tamas 2013-10-17 14:06:21 +03:00
Родитель 886d8d37db
Коммит 33323dbfca
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -57,6 +57,7 @@ abstract class PixelTest extends BaseTest {
} }
tabEventExpecter.blockForEvent(); tabEventExpecter.blockForEvent();
contentEventExpecter.blockForEvent(); contentEventExpecter.blockForEvent();
waitForText(StringHelper.TITLE_PLACE_HOLDER);
loadAndPaint(url); loadAndPaint(url);
tabEventExpecter.unregisterListener(); tabEventExpecter.unregisterListener();
contentEventExpecter.unregisterListener(); contentEventExpecter.unregisterListener();

Просмотреть файл

@ -45,6 +45,8 @@ class StringHelper {
"Add to Home Screen" "Add to Home Screen"
}; };
public static final String TITLE_PLACE_HOLDER = "Enter Search or Address";
// Robocop page urls // Robocop page urls
// Note: please use getAbsoluteUrl(String url) on each robocop url to get the correct url // Note: please use getAbsoluteUrl(String url) on each robocop url to get the correct url
public static final String ROBOCOP_BIG_LINK_URL = "/robocop/robocop_big_link.html"; public static final String ROBOCOP_BIG_LINK_URL = "/robocop/robocop_big_link.html";