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=line&lineCap=butt",
143 name: "Canvas line segments, butt caps"
146 url: "simple/simple-canvas-paths.html?pathType=line&lineCap=round",
147 name: "Canvas line segments, round caps"
150 url: "simple/simple-canvas-paths.html?pathType=line&lineCap=square",
151 name: "Canvas line segments, square caps"
154 url: "simple/simple-canvas-paths.html?pathType=quadratic",
155 name: "Canvas quadratic segments"
158 url: "simple/simple-canvas-paths.html?pathType=quadraticPath",
159 name: "Canvas quadratic path"
162 url: "simple/simple-canvas-paths.html?pathType=bezier",
163 name: "Canvas bezier segments"
166 url: "simple/simple-canvas-paths.html?pathType=bezierPath",
167 name: "Canvas bezier path"
170 url: "simple/simple-canvas-paths.html?&pathType=arcTo",
171 name: "Canvas arcTo segments"
174 url: "simple/simple-canvas-paths.html?pathType=arc",
175 name: "Canvas arc segments"
178 url: "simple/simple-canvas-paths.html?pathType=rect",
182 url: "simple/simple-canvas-paths.html?pathType=lineFill",
183 name: "Canvas line path, fill"
186 url: "simple/simple-canvas-paths.html?pathType=quadraticFill",
187 name: "Canvas quadratic path, fill"
190 url: "simple/simple-canvas-paths.html?pathType=bezierFill",
191 name: "Canvas bezier path, fill"
194 url: "simple/simple-canvas-paths.html?&pathType=arcToFill",
195 name: "Canvas arcTo segments, fill"
198 url: "simple/simple-canvas-paths.html?pathType=arcFill",
199 name: "Canvas arc segments, fill"
202 url: "simple/simple-canvas-paths.html?pathType=rectFill",
203 name: "Canvas rects, fill"
208 Suites.push(new Suite("Complex examples",
211 url: "examples/canvas-electrons.html?gain=1&addLimit=100&removeLimit=10",
212 name: "canvas electrons"
215 url: "examples/canvas-stars.html?gain=4&addLimit=100&removeLimit=5",
221 Suites.push(new Suite("Test Templates",
224 url: "template/template-css.html?gain=1&addLimit=100&removeLimit=5",
228 url: "template/template-canvas.html?gain=1&addLimit=100&removeLimit=1000",
229 name: "canvas template"
232 url: "template/template-svg.html?gain=1&addLimit=100&removeLimit=5&<other_paramter>=<value>",
238 function suiteFromName(name)
240 return Suites.find(function(suite) { return suite.name == name; });
243 function testFromName(suite, name)
245 return suite.tests.find(function(test) { return test.name == name; });