3 text: Strings.text.testName,
8 text: Strings.text.score,
13 text: Strings.text.experiments.complexity,
17 { text: Strings.text.measurements.average, width: 7, children: [] },
18 { text: Strings.text.measurements.concern, width: 7, children: [] },
19 { text: Strings.text.measurements.stdev, width: 7, children: [] },
20 { text: Strings.text.measurements.percent, width: 6, children: [] },
24 text: Strings.text.experiments.frameRate,
28 { text: Strings.text.measurements.average, width: 6, children: [] },
29 { text: Strings.text.measurements.concern, width: 6, children: [] },
30 { text: Strings.text.measurements.stdev, width: 6, children: [] },
31 { text: Strings.text.measurements.percent, width: 6, children: [] },
35 text: Strings.text.samples,
39 { text: Strings.text.results.graph, width: 8, children: [] },
40 { text: Strings.text.results.json, width: 7, children: [] },
45 var Suite = function(name, tests) {
49 Suite.prototype.prepare = function(runner, contentWindow, contentDocument)
51 return runner.waitForElement("#stage").then(function (element) {
55 Suite.prototype.run = function(contentWindow, test, options, recordTable, progressBar)
57 return contentWindow.runBenchmark(this, test, options, recordTable, progressBar);
62 Suites.push(new Suite("HTML suite",
65 url: "bouncing-particles/bouncing-css-shapes.html?particleWidth=12&particleHeight=12&shape=circle",
66 name: "CSS bouncing circles"
69 url: "bouncing-particles/bouncing-css-shapes.html?particleWidth=40&particleHeight=40&shape=rect&clip=star",
70 name: "CSS bouncing clipped rects"
73 url: "bouncing-particles/bouncing-css-shapes.html?particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
74 name: "CSS bouncing gradient circles"
77 url: "bouncing-particles/bouncing-css-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
78 name: "CSS bouncing SVG images"
81 url: "bouncing-particles/bouncing-css-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
82 name: "CSS bouncing PNG images"
85 url: "text/layering-text.html",
86 name: "CSS layering text"
91 Suites.push(new Suite("Canvas suite",
94 url: "bouncing-particles/bouncing-canvas-shapes.html?particleWidth=12&particleHeight=12&shape=circle",
95 name: "canvas bouncing circles"
98 url: "bouncing-particles/bouncing-canvas-shapes.html?particleWidth=40&particleHeight=40&shape=rect&clip=star",
99 name: "canvas bouncing clipped rects"
102 url: "bouncing-particles/bouncing-canvas-shapes.html?particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
103 name: "canvas bouncing gradient circles"
106 url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
107 name: "canvas bouncing SVG images"
110 url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
111 name: "canvas bouncing PNG images"
116 Suites.push(new Suite("SVG suite",
119 url: "bouncing-particles/bouncing-svg-shapes.html?particleWidth=12&particleHeight=12&shape=circle",
120 name: "SVG bouncing circles",
123 url: "bouncing-particles/bouncing-svg-shapes.html?particleWidth=40&particleHeight=40&shape=rect&clip=star",
124 name: "SVG bouncing clipped rects",
127 url: "bouncing-particles/bouncing-svg-shapes.html?particleWidth=50&particleHeight=50&shape=circle&fill=gradient",
128 name: "SVG bouncing gradient circles"
131 url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
132 name: "SVG bouncing SVG images"
135 url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
136 name: "SVG bouncing PNG images"
141 Suites.push(new Suite("Basic canvas path suite",
144 url: "simple/simple-canvas-paths.html?pathType=line&lineCap=butt",
145 name: "Canvas line segments, butt caps"
148 url: "simple/simple-canvas-paths.html?pathType=line&lineCap=round",
149 name: "Canvas line segments, round caps"
152 url: "simple/simple-canvas-paths.html?pathType=line&lineCap=square",
153 name: "Canvas line segments, square caps"
156 url: "simple/simple-canvas-paths.html?pathType=linePath&lineJoin=bevel",
157 name: "Canvas line path, bevel join"
160 url: "simple/simple-canvas-paths.html?pathType=linePath&lineJoin=round",
161 name: "Canvas line path, round join"
164 url: "simple/simple-canvas-paths.html?pathType=linePath&lineJoin=miter",
165 name: "Canvas line path, miter join"
168 url: "simple/simple-canvas-paths.html?pathType=linePath&lineDash=1",
169 name: "Canvas line path with dash pattern"
172 url: "simple/simple-canvas-paths.html?pathType=quadratic",
173 name: "Canvas quadratic segments"
176 url: "simple/simple-canvas-paths.html?pathType=quadraticPath",
177 name: "Canvas quadratic path"
180 url: "simple/simple-canvas-paths.html?pathType=bezier",
181 name: "Canvas bezier segments"
184 url: "simple/simple-canvas-paths.html?pathType=bezierPath",
185 name: "Canvas bezier path"
188 url: "simple/simple-canvas-paths.html?&pathType=arcTo",
189 name: "Canvas arcTo segments"
192 url: "simple/simple-canvas-paths.html?pathType=arc",
193 name: "Canvas arc segments"
196 url: "simple/simple-canvas-paths.html?pathType=rect",
200 url: "simple/simple-canvas-paths.html?pathType=lineFill",
201 name: "Canvas line path, fill"
204 url: "simple/simple-canvas-paths.html?pathType=quadraticFill",
205 name: "Canvas quadratic path, fill"
208 url: "simple/simple-canvas-paths.html?pathType=bezierFill",
209 name: "Canvas bezier path, fill"
212 url: "simple/simple-canvas-paths.html?&pathType=arcToFill",
213 name: "Canvas arcTo segments, fill"
216 url: "simple/simple-canvas-paths.html?pathType=arcFill",
217 name: "Canvas arc segments, fill"
220 url: "simple/simple-canvas-paths.html?pathType=rectFill",
221 name: "Canvas rects, fill"
226 Suites.push(new Suite("Complex examples",
229 url: "examples/canvas-electrons.html",
230 name: "canvas electrons"
233 url: "examples/canvas-stars.html",
239 Suites.push(new Suite("Miscellaneous Tests",
242 url: "misc/compositing-transforms.html?particleWidth=50&particleHeight=50&filters=yes&imageSrc=../resources/yin-yang.svg",
243 name: "Composited Transforms"
248 function suiteFromName(name)
250 return Suites.find(function(suite) { return suite.name == name; });
253 function testFromName(suite, name)
255 return suite.tests.find(function(test) { return test.name == name; });