Bug 1512989 - Part 1: Pass correct test type. r=ahal

This commit is contained in:
André Bargull 2018-12-11 06:06:34 -08:00
Родитель 90e657e176
Коммит 75e44f9708
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -292,11 +292,12 @@ function ReadManifest(aURL, aFilter)
ReadManifest(incURI, aFilter);
}
} else if (items[0] == TYPE_LOAD || items[0] == TYPE_SCRIPT) {
var type = items[0];
if (items.length != 2)
throw "Error in manifest file " + aURL.spec + " line " + lineNo + ": incorrect number of arguments to " + items[0];
if (items[0] == TYPE_LOAD && expected_status != EXPECTED_PASS && expected_status != EXPECTED_DEATH)
throw "Error in manifest file " + aURL.spec + " line " + lineNo + ": incorrect number of arguments to " + type;
if (type == TYPE_LOAD && expected_status != EXPECTED_PASS && expected_status != EXPECTED_DEATH)
throw "Error in manifest file " + aURL.spec + " line " + lineNo + ": incorrect known failure type for load test";
AddTestItem({ type: TYPE_LOAD,
AddTestItem({ type: type,
expected: expected_status,
manifest: aURL.spec,
allowSilentFail: allow_silent_fail,