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

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

Issue 2079233002: Fix a wrong test landed in r400392. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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-remove.html
diff --git a/third_party/WebKit/PerformanceTests/DOM/select-single-remove.html b/third_party/WebKit/PerformanceTests/DOM/select-single-remove.html
index 5fb13d7679d7f56c8fe7c2d6d6d1e6b8a6c983ab..158c62dca9cb3dc7c3d6968a1eeff6c25a1d9bb6 100644
--- a/third_party/WebKit/PerformanceTests/DOM/select-single-remove.html
+++ b/third_party/WebKit/PerformanceTests/DOM/select-single-remove.html
@@ -16,8 +16,10 @@ PerfTestRunner.measureRunsPerSecond({
description: 'Measures performance of removing option elements from a single-selection select element.',
run: () => {
- for (var i = 0; i < childCount; ++i)
+ for (var i = 0; i < childCount; ++i) {
+ nodes[i].selected = false;
container.appendChild(nodes[i]);
+ }
container.offsetLeft;
for (var i = 0; i < childCount; ++i)
container.removeChild(nodes[i]);
« 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