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

Unified Diff: third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html

Issue 2723243002: Add several tough paint performance tests (Closed)
Patch Set: Minimize tests Created 3 years, 10 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 | « third_party/WebKit/PerformanceTests/Paint/containment-resize.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html
diff --git a/third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html b/third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..e17f952f4cf2da997fa78ca27b8e6b3f11ea930c
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<div style="position: fixed; width: 10px; height: 10px; background-color: blue"></div>
+<table id="table"></table>
+<script src="../resources/runner.js"></script>
+<script>
+function createRow(i) {
+ var tr = document.createElement('tr');
+ tr.innerHTML = '<td>' + i + '</td>' +
+ '<td style="position: relative"><b><i><u>Test</u></i></b><b><i><u>Test</u></i></b><b><i><u>Test</u></i></b><b><i><u>Test</u></i></b></td>';
+ table.appendChild(tr);
+}
+
+for (var i = 0; i < 20000; ++i)
+ createRow(i);
+
+var count = 0;
+PerfTestRunner.measureFrameTime({
+ run: function() {
+ window.scrollTo(0, 20 * count++);
+ },
+});
+</script>
« no previous file with comments | « third_party/WebKit/PerformanceTests/Paint/containment-resize.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698