| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body> | 2 <body> |
| 3 <script src="../resources/runner.js"></script> | 3 <script src="../resources/runner.js"></script> |
| 4 <style id="styleElement" type="text/css"> | 4 <style id="styleElement" type="text/css"> |
| 5 /* Some yui Yahoo! library snippet */ | 5 /* Some yui Yahoo! library snippet */ |
| 6 | 6 |
| 7 /*Copyright (c) 2012, Yahoo! Inc. All rights reserved. | 7 /*Copyright (c) 2012, Yahoo! Inc. All rights reserved. |
| 8 ---------------------------------------------------- | 8 ---------------------------------------------------- |
| 9 | 9 |
| 10 Redistribution and use of this software in source and binary forms, with or | 10 Redistribution and use of this software in source and binary forms, with or |
| (...skipping 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2612 .yui3-u-23-24 { | 2612 .yui3-u-23-24 { |
| 2613 width: 95.8333%; | 2613 width: 95.8333%; |
| 2614 } | 2614 } |
| 2615 /* YUI CSS Detection Stamp */ | 2615 /* YUI CSS Detection Stamp */ |
| 2616 #yui3-css-stamp.cssgrids { display: none; } | 2616 #yui3-css-stamp.cssgrids { display: none; } |
| 2617 </style> | 2617 </style> |
| 2618 <script> | 2618 <script> |
| 2619 var element = document.getElementById("styleElement"); | 2619 var element = document.getElementById("styleElement"); |
| 2620 var cssText = element.textContent; | 2620 var cssText = element.textContent; |
| 2621 var count = 0; | 2621 var count = 0; |
| 2622 PerfTestRunner.measureRunsPerSecond({run:function() { | 2622 PerfTestRunner.measureRunsPerSecond({ |
| 2623 element.textContent = ""; | 2623 description: "Measures performance of the CSS parser (using YUI's CSS).", |
| 2624 element.textContent = cssText + "#some" + count + "{color:black};"; | 2624 run: function() { |
| 2625 count++; | 2625 element.textContent = ""; |
| 2626 }}); | 2626 element.textContent = cssText + "#some" + count + "{color:black};"; |
| 2627 count++; |
| 2628 } |
| 2629 }); |
| 2627 | 2630 |
| 2628 </script> | 2631 </script> |
| 2629 </body> | 2632 </body> |
| OLD | NEW |