For the time being do not try to get a list of all XML files under the 'TEST_RESULT_PATH' directory using

an HTTP request as this directory isn't (yet) publically indexable.  Instead, we'll use a hardcoded
list of files for now.
This commit is contained in:
David Fugate 2010-11-15 09:56:26 -08:00
parent c3435f4665
commit 1063159ce0
1 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,15 @@ var xslTestList = loadXMLDoc(TEST_REPORT_INDIV_TESTS_TABLE_XSL);
// Populate fileList array by reading all xml files in "/enginereports/testresults" directory on server // Populate fileList array by reading all xml files in "/enginereports/testresults" directory on server
function loadTestResultList() { function loadTestResultList() {
if (fileList.length === 0) {
var tempList = ["chrome.xml", "firefox.xml", "ie.xml", "safari.xml"];
for (var i = 0; i < tempList.length; i++) {
fileList.push(TEST_RESULT_PATH + tempList[i]);
}
}
/*TODO - fix this once we have nginx.conf setup properly for TEST_RESULT_PATH listings
on the deployment server
if (fileList.length === 0) { if (fileList.length === 0) {
var httpRequest = new XMLHttpRequest(); var httpRequest = new XMLHttpRequest();
httpRequest.open("GET", TEST_RESULT_PATH, false); httpRequest.open("GET", TEST_RESULT_PATH, false);
@ -29,6 +38,7 @@ function loadTestResultList() {
} }
} }
} }
*/
} }
function createTestReportFile(fileList) { function createTestReportFile(fileList) {