8 text: "Animated Items",
12 { text: "Avg.", width: 7, children: [] },
13 { text: "W.5%", width: 7, children: [] },
14 { text: "Std.", width: 7, children: [] },
15 { text: "%", width: 7, children: [] },
23 { text: "Avg.", width: 7, children: [] },
24 { text: "W.5%", width: 7, children: [] },
25 { text: "Std.", width: 7, children: [] },
26 { text: "%", width: 7, children: [] },
41 var Suite = function(name, tests) {
46 Suite.prototype.prepare = function(runner, contentWindow, contentDocument)
48 return runner.waitForElement("#stage").then(function (element) {
52 Suite.prototype.run = function(contentWindow, test, options, recordTable, progressBar)
54 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
60 Suites.push(new Suite("HTML suite",
63 url: "bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=12&particleHeight=12&shape=circle",
64 name: "CSS bouncing circles"
67 url: "bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=40&particleHeight=40&shape=rect&clip=star",
68 name: "CSS bouncing clipped rects"
71 url: "bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
72 name: "CSS bouncing gradient circles"
75 url: "bouncing-particles/bouncing-css-images.html?gain=0.4&addLimit=5&removeLimit=2&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
76 name: "CSS bouncing SVG images"
79 url: "bouncing-particles/bouncing-css-images.html?gain=1&addLimit=100&removeLimit=5&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
80 name: "CSS bouncing PNG images"
83 url: "text/layering-text.html?gain=4&addLimit=100&removeLimit=100",
84 name: "CSS layering text"
89 Suites.push(new Suite("Canvas suite",
92 url: "bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=12&particleHeight=12&shape=circle",
93 name: "canvas bouncing circles"
96 url: "bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=40&particleHeight=40&shape=rect&clip=star",
97 name: "canvas bouncing clipped rects"
100 url: "bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
101 name: "canvas bouncing gradient circles"
104 url: "bouncing-particles/bouncing-canvas-images.html?gain=0.4&addLimit=5&removeLimit=1&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
105 name: "canvas bouncing SVG images"
108 url: "bouncing-particles/bouncing-canvas-images.html?gain=4&addLimit=1000&removeLimit=1000&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
109 name: "canvas bouncing PNG images"
114 Suites.push(new Suite("SVG suite",
117 url: "bouncing-particles/bouncing-svg-shapes.html?gain=6&addLimit=100&removeLimit=1000&particleWidth=12&particleHeight=12&shape=circle",
118 name: "SVG bouncing circles",
121 url: "bouncing-particles/bouncing-svg-shapes.html?gain=0.6&addLimit=10&removeLimit=1&particleWidth=40&particleHeight=40&shape=rect&clip=star",
122 name: "SVG bouncing clipped rects",
125 url: "bouncing-particles/bouncing-svg-shapes.html?gain=0.8&addLimit=10&removeLimit=4&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
126 name: "SVG bouncing gradient circles"
129 url: "bouncing-particles/bouncing-svg-images.html?gain=0.4&addLimit=5&removeLimit=2&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
130 name: "SVG bouncing SVG images"
133 url: "bouncing-particles/bouncing-svg-images.html?gain=4&addLimit=100&removeLimit=5&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
134 name: "SVG bouncing PNG images"
139 Suites.push(new Suite("Basic canvas path suite",
142 url: "simple/simple-canvas-paths.html?pathType=quadratic",
143 name: "Canvas quadratic segments"
146 url: "simple/simple-canvas-paths.html?pathType=bezier",
147 name: "Canvas bezier segments"
150 url: "simple/simple-canvas-paths.html?&pathType=arcTo",
151 name: "Canvas arcTo segments"
154 url: "simple/simple-canvas-paths.html?pathType=arc",
155 name: "Canvas arc segments"
158 url: "simple/simple-canvas-paths.html?pathType=rect",
162 url: "simple/simple-canvas-paths.html?&pathType=arcToFill",
163 name: "Canvas arcTo segments, fill"
166 url: "simple/simple-canvas-paths.html?pathType=arcFill",
167 name: "Canvas arc segments, fill"
170 url: "simple/simple-canvas-paths.html?pathType=rectFill",
171 name: "Canvas rects, fill"
176 Suites.push(new Suite("Complex examples",
179 url: "examples/canvas-electrons.html?gain=1&addLimit=100&removeLimit=10",
180 name: "canvas electrons"
183 url: "examples/canvas-stars.html?gain=4&addLimit=100&removeLimit=5",
189 Suites.push(new Suite("Test Templates",
192 url: "template/template-css.html?gain=1&addLimit=100&removeLimit=5",
196 url: "template/template-canvas.html?gain=1&addLimit=100&removeLimit=1000",
197 name: "canvas template"
200 url: "template/template-svg.html?gain=1&addLimit=100&removeLimit=5&<other_paramter>=<value>",
206 function suiteFromName(name)
208 return Suites.find(function(suite) { return suite.name == name; });
211 function testFromName(suite, name)
213 return suite.tests.find(function(test) { return test.name == name; });