Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: tools/perf/page_sets/trivial_sites/trivial_scrolling_page.html

Issue 1998433003: Add scrolling power test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move page. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/page_sets/trivial_sites.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « tools/perf/page_sets/trivial_sites.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698