mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Sisyphus/JavaScript Tests - handle browser test timeouts better in non-restart mode, bug 416788
This commit is contained in:
parent
b54eb10ece
commit
754b55208e
@ -97,6 +97,23 @@ function userOnPageTimeout()
|
||||
{
|
||||
gPageStop = new Date();
|
||||
cdump(gSpider.mCurrentUrl.mUrl + ': PAGE STATUS: TIMED OUT (' + ((gPageStop - gPageStart)/1000).toFixed(0) + ' seconds)');
|
||||
if (typeof gSpider.mDocument != 'undefined')
|
||||
{
|
||||
try
|
||||
{
|
||||
var win = gSpider.mDocument.defaultView;
|
||||
if (win.wrappedJSObject)
|
||||
{
|
||||
win = win.wrappedJSObject;
|
||||
}
|
||||
gPageCompleted = win.gPageCompleted = true;
|
||||
checkTestCompleted();
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
cdump('userOnPageTimeout: ' + ex);
|
||||
}
|
||||
}
|
||||
cdump('JavaScriptTest: End Test ' + gCurrentTestId);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user