зеркало из https://github.com/mozilla/gecko-dev.git
removed session-logout from observers, per bug 148189.
a=asa for QA checkins that are not part of the default builds
This commit is contained in:
Родитель
7566840f82
Коммит
8f77e8da30
|
@ -71,7 +71,7 @@ ObserverElement ObserverTable[] = {
|
|||
{"xmlparser", PR_TRUE},
|
||||
{"memory-pressure", PR_FALSE},
|
||||
{"quit-application", PR_TRUE},
|
||||
{"session-logout", PR_FALSE}
|
||||
{"login-failed", PR_FALSE}
|
||||
};
|
||||
|
||||
|
||||
|
@ -278,9 +278,9 @@ NS_IMETHODIMP CnsIObserServ::Observe(nsISupports *aSubject, const char *aTopic,
|
|||
{
|
||||
QAOutput("Observed 'quit-application'.");
|
||||
}
|
||||
else if (nsCRT::strcmp(aTopic, "session-logout") == 0)
|
||||
else if (nsCRT::strcmp(aTopic, "login-failed") == 0)
|
||||
{
|
||||
QAOutput("Observed 'session-logout'.");
|
||||
QAOutput("Observed 'login-failed'.");
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
@ -85,14 +85,13 @@ NavElement UrlTable[] = {
|
|||
{"https://www.yahoo.com/", nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE},
|
||||
{"https://www.cisco.com", nsIWebNavigation::LOAD_FLAGS_BYPASS_PROXY},
|
||||
{"about:plugins", nsIWebNavigation::LOAD_FLAGS_CHARSET_CHANGE},
|
||||
// {"javascript:", nsIWebNavigation::LOAD_FLAGS_NONE},
|
||||
{"javascript: alert('Test!')", nsIWebNavigation::LOAD_FLAGS_NONE},
|
||||
{"file://C|/Program Files", nsIWebNavigation::LOAD_FLAGS_NONE}
|
||||
};
|
||||
|
||||
|
||||
void CNsIWebNav::OnStartTests(UINT nMenuID)
|
||||
{
|
||||
|
||||
switch(nMenuID)
|
||||
{
|
||||
case ID_INTERFACES_NSIWEBNAV_RUNALLTESTS :
|
||||
|
@ -121,7 +120,7 @@ void CNsIWebNav::OnStartTests(UINT nMenuID)
|
|||
break ;
|
||||
case ID_INTERFACES_NSIWEBNAV_STOP :
|
||||
StopUriTest("file://C|/Program Files",
|
||||
nsIWebNavigation::STOP_ALL);
|
||||
nsIWebNavigation::STOP_CONTENT);
|
||||
break ;
|
||||
case ID_INTERFACES_NSIWEBNAV_GETDOCUMENT :
|
||||
GetDocumentTest();
|
||||
|
@ -135,7 +134,6 @@ void CNsIWebNav::OnStartTests(UINT nMenuID)
|
|||
case ID_INTERFACES_NSIWEBNAV_SETSESSIONHISTORY :
|
||||
break ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNsIWebNav::RunAllTests()
|
||||
|
@ -169,7 +167,7 @@ void CNsIWebNav::RunAllTests()
|
|||
QAOutput("Run a few LoadURI() tests.", 2);
|
||||
|
||||
|
||||
LoadUriandReload(10);
|
||||
LoadUriandReload(11);
|
||||
|
||||
|
||||
// Stop() tests
|
||||
|
@ -308,7 +306,7 @@ void CNsIWebNav::LoadUriTest(char *theUrl, const unsigned long theFlag)
|
|||
nsnull,
|
||||
nsnull);
|
||||
sprintf(theTotalString, "%s%s%s%s%s", "LoadURI(): ", theUrl, " w/ ", theFlagName, " test");
|
||||
RvTestResult(rv, theTotalString, 2);
|
||||
RvTestResult(rv, theTotalString, 1);
|
||||
}
|
||||
|
||||
void CNsIWebNav::ReloadTest(const unsigned long theFlag)
|
||||
|
|
Загрузка…
Ссылка в новой задаче