static _computeStatus()

in resources/perf.webkit.org/public/v3/pages/analysis-category-page.js [163:184]


    static _computeStatus(task)
    {
        if (task.hasPendingRequests())
            return {label: task.requestLabel(), class: 'bisecting'};

        var type = task.changeType();
        switch (type) {
        case 'regression':
            return {label: 'Regression', class: type};
        case 'progression':
            return {label: 'Progression', class: type};
        case 'unchanged':
            return {label: 'No change', class: type};
        case 'inconclusive':
            return {label: 'Inconclusive', class: type};
        }

        if (task.hasResults())
            return {label: 'New results', class: 'bisecting'};

        return {label: 'Unconfirmed', class: 'unconfirmed'};
    }