c6dca6e45d7461bbd83b3ab16707379121fa8f1e
[WebKit-https.git] / PerformanceTests / Animometer / resources / runner / tests.js
1 var Headers = {
2     testName: [{ title: Strings.text.testName }],
3     score: [{ title: Strings.text.score, text: Strings.json.score }]
4 };
5
6 var Suite = function(name, tests) {
7     this.name = name;
8     this.tests = tests;
9 };
10
11 var Suites = [];
12
13 Suites.push(new Suite("Animometer",
14     [
15         {
16             url: "master/canvas-stage.html?pathType=arcs",
17             name: "Canvas arcs"
18         },
19         {
20             url: "master/canvas-stage.html?pathType=linePath&lineJoin=round&lineCap=round",
21             name: "Canvas line path, round join"
22         },
23         {
24             url: "master/canvas-stage.html?pathType=line&lineCap=square",
25             name: "Canvas line segments"
26         },
27         {
28             url: "master/svg-stage.html",
29             name: "SVG clipped rects"
30         },
31     ]
32 ));
33
34 function suiteFromName(name)
35 {
36     return Suites.find(function(suite) { return suite.name == name; });
37 }
38
39 function testFromName(suite, name)
40 {
41     return suite.tests.find(function(test) { return test.name == name; });
42 }