| 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>
|
|
|