Add new benchmark tests.
[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/multiply.html",
17             name: "Multiply"
18         },
19         {
20             url: "master/canvas-stage.html?pathType=arcs",
21             name: "Canvas arcs"
22         },
23         {
24             url: "master/canvas-stage.html?pathType=linePath&lineJoin=round&lineCap=round",
25             name: "Canvas line path, round join"
26         },
27         {
28             url: "master/canvas-stage.html?pathType=line&lineCap=square",
29             name: "Canvas line segments"
30         },
31         {
32             url: "master/focus.html",
33             name: "Focus"
34         },
35         {
36             url: "master/image-data.html",
37             name: "Images"
38         },
39         {
40             url: "master/particles.html",
41             name: "DOM particles, SVG masks"
42         },
43     ]
44 ));
45
46 function suiteFromName(name)
47 {
48     return Suites.find(function(suite) { return suite.name == name; });
49 }
50
51 function testFromName(suite, name)
52 {
53     return suite.tests.find(function(test) { return test.name == name; });
54 }