зеркало из https://github.com/mozilla/gecko-dev.git
Bug 927296 - Fix testPrivateBrowsing NullPointerException by waiting for the title placeholder. r=gbrown
This commit is contained in:
Родитель
886d8d37db
Коммит
33323dbfca
|
@ -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";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче