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

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

Issue 2766763004: Add trivial animation page to trivial_sites perf benchmark. (Closed)
Patch Set: Add comments. Created 3 years, 9 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_animation.html
diff --git a/tools/perf/page_sets/trivial_sites/trivial_animation.html b/tools/perf/page_sets/trivial_sites/trivial_animation.html
new file mode 100644
index 0000000000000000000000000000000000000000..712371d2329ff3f9a45204b997c7c49e5273baf2
--- /dev/null
+++ b/tools/perf/page_sets/trivial_sites/trivial_animation.html
@@ -0,0 +1,39 @@
+<!doctype html>
+<!--
+Copyright 2017 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>
+ <title>Trivial Animation</title>
+</head>
+<body>
+ <!-- The image is a 625 × 831 dark gray rect. -->
+ <img id="the_image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAnEAAAM/CAMAAACJdnSiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnibAAPB3AAHlB06MAAAAAElFTkSuQmCC" />
+</body>
+<script>
+ var image = null;
+ var offset = 0;
+
+ function init() {
+ image = document.getElementById('the_image');
+ image.style.position = 'relative';
+ image.style.left = '0px';
+ animate();
+ }
+
+ function animate() {
+ offset++;
+ if (offset > 500) {
+ offset = 0;
+ }
+ image.style.left = offset + 'px';
+
+ // Move the image 1pt every 16ms.
+ setTimeout(animate, 16);
+ }
+
+ window.onload = init;
+</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