mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867992 - Fix for intermittent browser_webconsole_bug_630733_response_redirect_headers.js | Timed out while waiting for: 301 and 404 responses; r=me
This commit is contained in:
parent
867d82bd44
commit
ce386df079
@ -192,7 +192,6 @@ skip-if = os == "linux" # Intermittent failures, bug 952865
|
|||||||
[browser_webconsole_bug_623749_ctrl_a_select_all_winnt.js]
|
[browser_webconsole_bug_623749_ctrl_a_select_all_winnt.js]
|
||||||
run-if = os == "win"
|
run-if = os == "win"
|
||||||
[browser_webconsole_bug_630733_response_redirect_headers.js]
|
[browser_webconsole_bug_630733_response_redirect_headers.js]
|
||||||
skip-if = os == "linux" # Intermittent failures, bug 867992
|
|
||||||
[browser_webconsole_bug_632275_getters_document_width.js]
|
[browser_webconsole_bug_632275_getters_document_width.js]
|
||||||
[browser_webconsole_bug_632347_iterators_generators.js]
|
[browser_webconsole_bug_632347_iterators_generators.js]
|
||||||
[browser_webconsole_bug_632817.js]
|
[browser_webconsole_bug_632817.js]
|
||||||
|
@ -12,12 +12,6 @@ const TEST_URI = "http://example.com/browser/browser/devtools/webconsole/test/te
|
|||||||
let lastFinishedRequests = {};
|
let lastFinishedRequests = {};
|
||||||
let webConsoleClient;
|
let webConsoleClient;
|
||||||
|
|
||||||
function requestDoneCallback(aHttpRequest )
|
|
||||||
{
|
|
||||||
let status = aHttpRequest.response.status;
|
|
||||||
lastFinishedRequests[status] = aHttpRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
function consoleOpened(hud)
|
function consoleOpened(hud)
|
||||||
{
|
{
|
||||||
webConsoleClient = hud.ui.webConsoleClient;
|
webConsoleClient = hud.ui.webConsoleClient;
|
||||||
@ -26,20 +20,18 @@ function consoleOpened(hud)
|
|||||||
"The saveRequestAndResponseBodies property was successfully set.");
|
"The saveRequestAndResponseBodies property was successfully set.");
|
||||||
|
|
||||||
HUDService.lastFinishedRequest.callback = requestDoneCallback;
|
HUDService.lastFinishedRequest.callback = requestDoneCallback;
|
||||||
waitForSuccess(waitForResponses);
|
|
||||||
content.location = TEST_URI;
|
content.location = TEST_URI;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let waitForResponses = {
|
function requestDoneCallback(aHttpRequest)
|
||||||
name: "301 and 404 responses",
|
{
|
||||||
validatorFn: function()
|
let status = aHttpRequest.response.status;
|
||||||
{
|
lastFinishedRequests[status] = aHttpRequest;
|
||||||
return "301" in lastFinishedRequests &&
|
if ("301" in lastFinishedRequests &&
|
||||||
"404" in lastFinishedRequests;
|
"404" in lastFinishedRequests) {
|
||||||
},
|
getHeaders();
|
||||||
successFn: getHeaders,
|
}
|
||||||
failureFn: finishTest,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getHeaders()
|
function getHeaders()
|
||||||
|
Loading…
Reference in New Issue
Block a user