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

Unified Diff: PerformanceTests/CSS/CSSPropertySetterGetterMethods.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 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 | « PerformanceTests/CSS/CSSPropertySetterGetter.html ('k') | PerformanceTests/CSS/CSSPropertyUpdateValue.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/CSS/CSSPropertySetterGetterMethods.html
diff --git a/PerformanceTests/CSS/CSSPropertySetterGetterMethods.html b/PerformanceTests/CSS/CSSPropertySetterGetterMethods.html
index 8318c1540b7d245e172b1e11ed2505a6dc36944a..f999c5fa9053e74ce684a9bdb368a9a8abaea8a5 100644
--- a/PerformanceTests/CSS/CSSPropertySetterGetterMethods.html
+++ b/PerformanceTests/CSS/CSSPropertySetterGetterMethods.html
@@ -71,12 +71,15 @@ var properties = {
'webkit-transform' : 'scale3d(0.5, 0.5, 0.5)',
'word-spacing' : '40px',
};
-PerfTestRunner.measureRunsPerSecond({run:function() {
- for (key in properties) {
- var value = div.style.getPropertyValue(key);
- div.style.removeProperty(key);
- div.style.setProperty(key, properties[key]);
+PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of the CSS style getter and setter methods (elem.style.(getPropertyValue|removeProperty|setProperty)).",
+ run:function() {
+ for (key in properties) {
+ var value = div.style.getPropertyValue(key);
+ div.style.removeProperty(key);
+ div.style.setProperty(key, properties[key]);
+ }
}
-}});
+});
</script>
</html>
« no previous file with comments | « PerformanceTests/CSS/CSSPropertySetterGetter.html ('k') | PerformanceTests/CSS/CSSPropertyUpdateValue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698