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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="test"></div> 7 <div id="test"></div>
8 </body> 8 </body>
9 <script> 9 <script>
10 var div = document.getElementById("test"); 10 var div = document.getElementById("test");
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 'text-align' : 'center', 64 'text-align' : 'center',
65 'text-decoration' : 'blink', 65 'text-decoration' : 'blink',
66 'text-transform' : 'capitalize', 66 'text-transform' : 'capitalize',
67 'top' : '25%', 67 'top' : '25%',
68 'vertical-align' : 'text-bottom', 68 'vertical-align' : 'text-bottom',
69 'visibility' : 'visible', 69 'visibility' : 'visible',
70 'width' : '300px', 70 'width' : '300px',
71 'webkit-transform' : 'scale3d(0.5, 0.5, 0.5)', 71 'webkit-transform' : 'scale3d(0.5, 0.5, 0.5)',
72 'word-spacing' : '40px', 72 'word-spacing' : '40px',
73 }; 73 };
74 PerfTestRunner.measureRunsPerSecond({run:function() { 74 PerfTestRunner.measureRunsPerSecond({
75 for (key in properties) { 75 description: "Measures performance of the CSS style getter and setter method s (elem.style.(getPropertyValue|removeProperty|setProperty)).",
76 var value = div.style.getPropertyValue(key); 76 run:function() {
77 div.style.removeProperty(key); 77 for (key in properties) {
78 div.style.setProperty(key, properties[key]); 78 var value = div.style.getPropertyValue(key);
79 div.style.removeProperty(key);
80 div.style.setProperty(key, properties[key]);
81 }
79 } 82 }
80 }}); 83 });
81 </script> 84 </script>
82 </html> 85 </html>
OLDNEW
« 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