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

Unified Diff: third_party/WebKit/PerformanceTests/Layout/large-table-background-change-with-visible-collapsed-borders.html

Issue 1550833002: PerformanceTests/Layout/large-table-background-change* to Paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: third_party/WebKit/PerformanceTests/Layout/large-table-background-change-with-visible-collapsed-borders.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/large-table-background-change-with-visible-collapsed-borders.html b/third_party/WebKit/PerformanceTests/Layout/large-table-background-change-with-visible-collapsed-borders.html
deleted file mode 100644
index c3f47f7e695382eba742fc842f93443afbe0e840..0000000000000000000000000000000000000000
--- a/third_party/WebKit/PerformanceTests/Layout/large-table-background-change-with-visible-collapsed-borders.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/runner.js"></script>
-<pre id="log"></pre>
-<style>td { border: 1px solid blue }</style>
-<script>
-// We discard the first iteration to avoid a cold outlier.
-var iterations = 11;
-var results = [];
-var previousFrameTime = -1;
-var now = function(){
- return window.performance ? performance.now() : Date.now();
-};
-
-function createTable(rows, columns) {
- var table = document.createElement("TABLE");
- // Collapsing border is not necessary to see the slowness
- // but it makes the painting phase ~2x slower.
- table.style.borderCollapse = "collapse";
- for (var i = 0; i < rows; ++i) {
- var tr = document.createElement("TR");
- for (var j = 0; j < columns; ++j) {
- var td = document.createElement("TD");
- tr.appendChild(td);
- }
- table.appendChild(tr);
- }
- return table;
-}
-
-
-var table = createTable(300, 320);
-document.body.appendChild(table);
-
-ix=30;
-iy=30;
-
-function toggleBackgroundColor()
-{
- var thisFrameTime = now();
- if (previousFrameTime != -1)
- results.push(thisFrameTime - previousFrameTime);
- previousFrameTime = thisFrameTime;
-
- if (iterations == 0) {
- PerfTestRunner.logStatistics(results, 'ms', "Time:");
- if (window.testRunner)
- testRunner.notifyDone();
- } else {
- iterations--;
- window.requestAnimationFrame(toggleBackgroundColor);
- }
-
- table.childNodes[iy].childNodes[ix].style.backgroundColor = 'teal';
- ix++;
- iy++;
-}
-
-if (window.testRunner)
- testRunner.waitUntilDone();
-
-// Start the test after two frame to ensure we have set-up, laid out and painted the table.
-window.requestAnimationFrame(function() { window.requestAnimationFrame(toggleBackgroundColor) });
-</script>

Powered by Google App Engine
This is Rietveld 408576698