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

Unified Diff: third_party/WebKit/PerformanceTests/DOM/select-single-add.html

Issue 2119413002: Fix blink_perf.dom select-single-add.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/DOM/select-single-add.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/select-single-add.html b/third_party/WebKit/PerformanceTests/DOM/select-single-add.html
index 5d921d4e9776914fd4b04ffd79e3a08a02d734ee..0addb63ccd0212f5b8a75ef845411f1a9a11d31b 100644
--- a/third_party/WebKit/PerformanceTests/DOM/select-single-add.html
+++ b/third_party/WebKit/PerformanceTests/DOM/select-single-add.html
@@ -6,16 +6,16 @@
var container = document.getElementById('container');
var nodes = [];
var childCount = 500;
-for (var i = 0; i < childCount; ++i) {
+for (var i = 0; i < childCount; ++i)
nodes.push(document.createElement('option'));
- nodes[i].selected = !!(i % 2);
-}
PerfTestRunner.measureRunsPerSecond({
description: 'Measures performance of adding option elements to a single-selection select element.',
run: function() {
- for (var i = 0; i < childCount; ++i)
+ for (var i = 0; i < childCount; ++i) {
+ nodes[i].selected = !!(i % 2);
container.appendChild(nodes[i]);
+ }
container.innerHTML = '';
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698