| Index: tools/perf/page_sets/tough_animation_cases/web_animations_staggered_infinite_iterations.html
|
| diff --git a/tools/perf/page_sets/tough_animation_cases/web_animations_staggered_infinite_iterations.html b/tools/perf/page_sets/tough_animation_cases/web_animations_staggered_infinite_iterations.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9ef4c6783687f04967a6adf915fb0ef7a6f4c68d
|
| --- /dev/null
|
| +++ b/tools/perf/page_sets/tough_animation_cases/web_animations_staggered_infinite_iterations.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE html>
|
| +<meta name="viewport" content="width=device-width, user-scalable=no">
|
| +<link rel="stylesheet" type="text/css" href="resources/tablet.css">
|
| +<script src="resources/perftesthelper.js"></script>
|
| +
|
| +<container id="container"></container>
|
| +
|
| +<script>
|
| +var N = PerfTestHelper.getN(1000);
|
| +var duration = 1000;
|
| +
|
| +function startAnimation(element, delay) {
|
| + target.animate([
|
| + {opacity: 0},
|
| + {opacity: 1},
|
| + ], {
|
| + duration: duration,
|
| + iterations: Infinity,
|
| + delay: delay,
|
| + });
|
| +}
|
| +
|
| +for (var i = 0; i < N; i++) {
|
| + var target = document.createElement('target');
|
| + container.appendChild(target);
|
| + startAnimation(target, i * (duration / N) - duration);
|
| +}
|
| +
|
| +PerfTestHelper.signalReady();
|
| +</script>
|
|
|