| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Performance tester for non-overlaping 3D layers</title> | 4 <title>Performance tester for non-overlaping 3D layers</title> |
| 5 <style> | 5 <style> |
| 6 .container { | 6 .container { |
| 7 width: 20px; | 7 width: 20px; |
| 8 height: 20px; | 8 height: 20px; |
| 9 border: 1px solid #AAA; | 9 border: 1px solid #AAA; |
| 10 margin: 0 auto 5px; | 10 margin: 0 auto 5px; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 inner.className = 'box'; | 34 inner.className = 'box'; |
| 35 outer.appendChild(inner); | 35 outer.appendChild(inner); |
| 36 container.appendChild(outer); | 36 container.appendChild(outer); |
| 37 } | 37 } |
| 38 document.body.appendChild(container); | 38 document.body.appendChild(container); |
| 39 // Force a layout update. | 39 // Force a layout update. |
| 40 document.body.clientHeight; | 40 document.body.clientHeight; |
| 41 container.remove(); | 41 container.remove(); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 PerfTestRunner.measureTime({run: createTestFunction(5000)}); | 44 PerfTestRunner.measureTime({ |
| 45 description: "Measures performance of non-overlapping 3D layers.
", |
| 46 run: createTestFunction(5000) |
| 47 }); |
| 45 </script> | 48 </script> |
| 46 </body> | 49 </body> |
| 47 </html> | 50 </html> |
| OLD | NEW |