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

Side by Side Diff: PerformanceTests/CSS/CSSPropertyUpdateValue.html

Issue 98733002: Avoid using non-standard property names in test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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
« no previous file with comments | « PerformanceTests/CSS/CSSPropertySetterGetter.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
11 var properties = { 11 var properties = {
12 'azimuth' : 'right', 12 'azimuth' : 'right',
13 'backgroundColor' : 'green', 13 'backgroundColor' : 'green',
14 'backgroundImage' : 'url(\'test.png\')', 14 'backgroundImage' : 'url(\'test.png\')',
15 'backgroundPosition' : 'top', 15 'backgroundPosition' : 'top',
16 'background-repeat' : 'repeat-x', 16 'backgroundRepeat' : 'repeat-x',
17 'background' : '#ffffff url(\'img_tree.png\') no-repeat right top', 17 'background' : '#ffffff url(\'img_tree.png\') no-repeat right top',
18 'border' : '20px dotted red', 18 'border' : '20px dotted red',
19 'borderBottomStyle' : 'dotted', 19 'borderBottomStyle' : 'dotted',
20 'borderCollapse' : 'separate', 20 'borderCollapse' : 'separate',
21 'borderColor' : 'blue', 21 'borderColor' : 'blue',
22 'borderSpacing' : '3px', 22 'borderSpacing' : '3px',
23 'borderStyle' : 'solid', 23 'borderStyle' : 'solid',
24 'borderTop' : 'green', 24 'borderTop' : 'green',
25 'borderWidth' : '20em', 25 'borderWidth' : '20em',
26 'bottom' : '20%', 26 'bottom' : '20%',
27 'captionSide' : 'top', 27 'captionSide' : 'top',
28 'clear' : 'both', 28 'clear' : 'both',
29 'clip' : 'rect(5px, 40px, 45px, 5px)', 29 'clip' : 'rect(5px, 40px, 45px, 5px)',
30 'color' : 'red', 30 'color' : 'red',
31 'content' : 'normal', 31 'content' : 'normal',
32 'direction' : 'rtl', 32 'direction' : 'rtl',
33 'display' : 'block', 33 'display' : 'block',
34 'float' : 'right', 34 'cssFloat' : 'right',
35 'fontFamily' : '"Times New Roman",Georgia,Serif', 35 'fontFamily' : '"Times New Roman",Georgia,Serif',
36 'fontSize' : '13px', 36 'fontSize' : '13px',
37 'fontVariant' : 'small-caps', 37 'fontVariant' : 'small-caps',
38 'fontWeight' : '700', 38 'fontWeight' : '700',
39 'font' : 'italic bold 12px/30px Georgia, serif', 39 'font' : 'italic bold 12px/30px Georgia, serif',
40 'height' : '200px', 40 'height' : '200px',
41 'left' : '20%', 41 'left' : '20%',
42 'letterSpacing' : '10px', 42 'letterSpacing' : '10px',
43 'lineHeight' : '40px', 43 'lineHeight' : '40px',
44 'listStyleImage' : 'url(\'test.png\')', 44 'listStyleImage' : 'url(\'test.png\')',
(...skipping 26 matching lines...) Expand all
71 'webkitTransform' : 'scale3d(0.5, 0.5, 0.5)', 71 'webkitTransform' : 'scale3d(0.5, 0.5, 0.5)',
72 'wordSpacing' : '40px', 72 'wordSpacing' : '40px',
73 }; 73 };
74 // The first run will just add the properties but it's fine as the first run of the benchmark is always ignored. 74 // The first run will just add the properties but it's fine as the first run of the benchmark is always ignored.
75 PerfTestRunner.measureRunsPerSecond({run:function() { 75 PerfTestRunner.measureRunsPerSecond({run:function() {
76 for (key in properties) 76 for (key in properties)
77 div.style[key] = properties[key]; 77 div.style[key] = properties[key];
78 }}); 78 }});
79 </script> 79 </script>
80 </html> 80 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/CSS/CSSPropertySetterGetter.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698