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: [] },
44 name: "HTML Bouncing Particles",
45 prepare: function(runner, contentWindow, contentDocument)
47 return runner.waitForElement("#stage").then(function (element) {
52 run: function(contentWindow, test, options, recordTable, progressBar)
54 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
60 url: "../tests/bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=12&particleHeight=12&shape=circle",
61 name: "CSS bouncing circles"
64 url: "../tests/bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=40&particleHeight=40&shape=rect&clip=star",
65 name: "CSS bouncing clipped rects"
68 url: "../tests/bouncing-particles/bouncing-css-shapes.html?gain=1&addLimit=100&removeLimit=5&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
69 name: "CSS bouncing gradient circles"
72 url: "../tests/bouncing-particles/bouncing-css-images.html?gain=0.4&addLimit=5&removeLimit=2&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
73 name: "CSS bouncing SVG images"
76 url: "../tests/bouncing-particles/bouncing-css-images.html?gain=1&addLimit=100&removeLimit=5&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
77 name: "CSS bouncing PNG images"
80 url: "../tests/text/layering-text.html?gain=4&addLimit=100&removeLimit=100",
81 name: "CSS layering text"
87 name: "Canvas Bouncing Particles",
88 prepare: function(runner, contentWindow, contentDocument)
90 return runner.waitForElement("#stage").then(function (element) {
95 run: function(contentWindow, test, options, recordTable, progressBar)
97 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
103 url: "../tests/bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=12&particleHeight=12&shape=circle",
104 name: "canvas bouncing circles"
107 url: "../tests/bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=40&particleHeight=40&shape=rect&clip=star",
108 name: "canvas bouncing clipped rects"
111 url: "../tests/bouncing-particles/bouncing-canvas-shapes.html?gain=4&addLimit=100&removeLimit=1000&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
112 name: "canvas bouncing gradient circles"
115 url: "../tests/bouncing-particles/bouncing-canvas-images.html?gain=0.4&addLimit=5&removeLimit=1&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
116 name: "canvas bouncing SVG images"
119 url: "../tests/bouncing-particles/bouncing-canvas-images.html?gain=4&addLimit=1000&removeLimit=1000&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
120 name: "canvas bouncing PNG images"
126 name: "SVG Bouncing Particles",
127 prepare: function(runner, contentWindow, contentDocument)
129 return runner.waitForElement("#stage").then(function (element) {
134 run: function(contentWindow, test, options, recordTable, progressBar)
136 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
142 url: "../tests/bouncing-particles/bouncing-svg-shapes.html?gain=6&addLimit=100&removeLimit=1000&particleWidth=12&particleHeight=12&shape=circle",
143 name: "SVG bouncing circles",
146 url: "../tests/bouncing-particles/bouncing-svg-shapes.html?gain=0.6&addLimit=10&removeLimit=1&particleWidth=40&particleHeight=40&shape=rect&clip=star",
147 name: "SVG bouncing clipped rects",
150 url: "../tests/bouncing-particles/bouncing-svg-shapes.html?gain=0.8&addLimit=10&removeLimit=4&particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
151 name: "SVG bouncing gradient circles"
154 url: "../tests/bouncing-particles/bouncing-svg-images.html?gain=0.4&addLimit=5&removeLimit=2&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
155 name: "SVG bouncing SVG images"
158 url: "../tests/bouncing-particles/bouncing-svg-images.html?gain=4&addLimit=100&removeLimit=5&particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
159 name: "SVG bouncing PNG images"
165 name: "More complex examples",
166 prepare: function(runner, contentWindow, contentDocument)
168 return runner.waitForElement("#stage").then(function (element) {
173 run: function(contentWindow, test, options, recordTable, progressBar)
175 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
181 url: "../tests/examples/canvas-electrons.html?gain=1&addLimit=100&removeLimit=10",
182 name: "canvas electrons"
185 url: "../tests/examples/canvas-stars.html?gain=4&addLimit=100&removeLimit=5",
192 name: "Stage Templates (Can be used for new tests)",
193 prepare: function(runner, contentWindow, contentDocument)
195 return runner.waitForElement("#stage").then(function (element) {
200 run: function(contentWindow, test, options, recordTable, progressBar)
202 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
208 url: "../tests/template/template-css.html?gain=1&addLimit=100&removeLimit=5",
212 url: "../tests/template/template-canvas.html?gain=1&addLimit=100&removeLimit=1000",
213 name: "canvas template"
216 url: "../tests/template/template-svg.html?gain=1&addLimit=100&removeLimit=5&<other_paramter>=<value>",
222 function suiteFromName(name)
224 return Suites.find(function(suite) { return suite.name == name; });
227 function testFromName(suite, name)
229 return suite.tests.find(function(test) { return test.name == name; });