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

Unified Diff: third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html

Issue 2849153002: Simplify test file used by testBlinkPerfTracingMetricsForMeasureFrameTime & enable it on Android (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | tools/perf/benchmarks/blink_perf_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html
diff --git a/third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html b/third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html
index a55b2475db72996c102005be71c7593bcee80150..d1c7ee33dc2c69a8ffbe448eb80af1a20f57f7b8 100644
--- a/third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html
+++ b/third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html
@@ -25,7 +25,7 @@ function buildTree(parent, depth, arity, tagNameCallback, createElementCallback)
// Build a tall tree that is skinny. A middle layer of
// the tree should have the changeColor class.
-buildTree(document.body, 15, 2,
+buildTree(document.body, 5, 5,
function(depth) {
// Use divs at upper levels to avoid too much layout time.
return depth > 9 ? 'div' : 'span';
@@ -37,20 +37,6 @@ buildTree(document.body, 15, 2,
}
);
-// Build a short tree that is fat. A middle layer of
-// the tree should have the changeColor class.
-buildTree(document.body, 6, 7,
- function(depth) {
- // Use divs at upper levels to avoid too much layout time.
- return depth > 4 ? 'div' : 'span';
- },
- function(element, depth) {
- element.style.backgroundColor = 'orange';
- if (depth == 3)
- element.setAttribute('class', 'changeColor');
- }
-);
-
var runCount = 0;
var elementsToChange = document.getElementsByClassName('changeColor');
var colors = [
« no previous file with comments | « no previous file | tools/perf/benchmarks/blink_perf_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698