| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Performance tester for non-overlaping 2D layers</title> | 4 <title>Performance tester for non-overlaping 2D layers</title> |
| 5 <style> | 5 <style> |
| 6 .container { | 6 .container { |
| 7 position: relative; | 7 position: relative; |
| 8 width: 20px; | 8 width: 20px; |
| 9 height: 20px; | 9 height: 20px; |
| 10 border: 1px solid #AAA; | 10 border: 1px solid #AAA; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 outer.appendChild(inner); | 42 outer.appendChild(inner); |
| 43 container.appendChild(outer); | 43 container.appendChild(outer); |
| 44 } | 44 } |
| 45 document.body.appendChild(container); | 45 document.body.appendChild(container); |
| 46 // Force a layout update. | 46 // Force a layout update. |
| 47 document.body.clientHeight; | 47 document.body.clientHeight; |
| 48 container.remove(); | 48 container.remove(); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 PerfTestRunner.measureTime({run: createTestFunction(5000)}); | 51 PerfTestRunner.measureTime({ |
| 52 description: "Measures performance of non-overlapping 2D layers.
", |
| 53 run: createTestFunction(5000) |
| 54 }); |
| 52 </script> | 55 </script> |
| 53 </body> | 56 </body> |
| 54 </html> | 57 </html> |
| OLD | NEW |