Add isolated text tests for MotionMark
[WebKit-https.git] / PerformanceTests / MotionMark / resources / runner / tests.js
1 var Headers = {
2     testName: [
3         {
4             title: "<span onclick='benchmarkController.showDebugInfo()'>" + Strings.text.testName + "</span>",
5             text: Strings.text.testName
6         }
7     ],
8     score: [
9         {
10             title: Strings.text.score,
11             text: Strings.json.score
12         }
13     ],
14     details: [
15         {
16             title: "&nbsp;",
17             text: function(data) {
18                 var bootstrap = data[Strings.json.complexity][Strings.json.bootstrap];
19                 return "<span>±" + (Statistics.largestDeviationPercentage(bootstrap.confidenceLow, bootstrap.median, bootstrap.confidenceHigh) * 100).toFixed(2) + "%</span>";
20             }
21         }
22     ]
23 };
24
25 var Suite = function(name, tests) {
26     this.name = name;
27     this.tests = tests;
28 };
29
30 var Suites = [];
31
32 Suites.push(new Suite("MotionMark",
33     [
34         {
35             url: "master/multiply.html",
36             name: "Multiply"
37         },
38         {
39             url: "master/canvas-stage.html?pathType=arcs",
40             name: "Canvas Arcs"
41         },
42         {
43             url: "master/leaves.html",
44             name: "Leaves"
45         },
46         {
47             url: "master/canvas-stage.html?pathType=linePath",
48             name: "Paths"
49         },
50         {
51             url: "master/canvas-stage.html?pathType=line&lineCap=square",
52             name: "Canvas Lines"
53         },
54         {
55             url: "master/focus.html",
56             name: "Focus"
57         },
58         {
59             url: "master/image-data.html",
60             name: "Images"
61         },
62         {
63             url: "master/design.html",
64             name: "Design"
65         },
66         {
67             url: "master/svg-particles.html",
68             name: "Suits"
69         },
70     ]
71 ));
72
73 function suiteFromName(name)
74 {
75     return Suites.find(function(suite) { return suite.name == name; });
76 }
77
78 function testFromName(suite, name)
79 {
80     return suite.tests.find(function(test) { return test.name == name; });
81 }