| Index: tools/perf/page_sets/trivial_sites/trivial_scrolling_page.html
|
| diff --git a/tools/perf/page_sets/trivial_sites/trivial_scrolling_page.html b/tools/perf/page_sets/trivial_sites/trivial_scrolling_page.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3466e4130775f908fc9307d1a24396c7396ab9da
|
| --- /dev/null
|
| +++ b/tools/perf/page_sets/trivial_sites/trivial_scrolling_page.html
|
| @@ -0,0 +1,38 @@
|
| +<!doctype html>
|
| +<!--
|
| +Copyright 2016 The Chromium Authors. All rights reserved.
|
| +Use of this source code is governed by a BSD-style license that can be
|
| +found in the LICENSE file.
|
| +-->
|
| +<html>
|
| +<head>
|
| + <style>
|
| + html, body {
|
| + margin: 0;
|
| + padding: 0;
|
| + }
|
| + </style>
|
| +</head>
|
| +<script>
|
| + var line = "";
|
| + for (i = 0; i < 1000; i++) {
|
| + for (j = 1000; j < 1080; j++) {
|
| + line += (i+j).toString();
|
| + }
|
| + line += "\n";
|
| + }
|
| + document.write(line);
|
| +
|
| + var total = 0;
|
| + var direction = 1;
|
| +
|
| + function scrollByRaf() {
|
| + total += direction;
|
| + window.scrollBy(0, direction);
|
| + if (total > 9000 || total < 0)
|
| + direction = -direction;
|
| + window.requestAnimationFrame(scrollByRaf);
|
| + }
|
| + window.onload = scrollByRaf;
|
| +</script>
|
| +</html>
|
|
|