chromium/third_party/blink/perf_tests/MotionMark/resources/runner/tests.js

var Headers = {
    testName: [
        {
            title: "<span onclick='benchmarkController.showDebugInfo()'>" + Strings.text.testName + "</span>",
            text: Strings.text.testName
        }
    ],
    score: [
        {
            title: Strings.text.score,
            text: Strings.json.score
        }
    ],
    details: [
        {
            title: "&nbsp;",
            text: function(data) {
                var bootstrap = data[Strings.json.complexity][Strings.json.bootstrap];
                return "<span>±" + (Statistics.largestDeviationPercentage(bootstrap.confidenceLow, bootstrap.median, bootstrap.confidenceHigh) * 100).toFixed(2) + "%</span>";
            }
        }
    ]
};

var Suite = function(name, tests) {
    this.name = name;
    this.tests = tests;
};

var Suites = [];

Suites.push(new Suite("MotionMark",
    [
        {
            url: "master/multiply.html", // nocheck
            name: "Multiply"
        },
        {
            url: "master/canvas-stage.html?pathType=arcs", // nocheck
            name: "Canvas Arcs"
        },
        {
            url: "master/leaves.html", // nocheck
            name: "Leaves"
        },
        {
            url: "master/canvas-stage.html?pathType=linePath", // nocheck
            name: "Paths"
        },
        {
            url: "master/canvas-stage.html?pathType=line&lineCap=square", // nocheck
            name: "Canvas Lines"
        },
        {
            url: "master/image-data.html", // nocheck
            name: "Images"
        },
        {
            url: "master/design.html", // nocheck
            name: "Design"
        },
        {
            url: "master/suits.html", // nocheck
            name: "Suits"
        },
    ]
));

function suiteFromName(name)
{
    return Suites.find(function(suite) { return suite.name == name; });
}

function testFromName(suite, name)
{
    return suite.tests.find(function(test) { return test.name == name; });
}