OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <!-- | 4 <!-- |
5 http://www.gutenberg.org/ebooks/41252 | 5 http://www.gutenberg.org/ebooks/41252 |
6 | 6 |
7 "This eBook is for the use of anyone anywhere at no cost and with almost
no restrictions whatsoever. You may copy it, give it away or re-use it under th
e terms of the Project Gutenberg License included with this eBook or online at w
ww.gutenberg.org." | 7 "This eBook is for the use of anyone anywhere at no cost and with almost
no restrictions whatsoever. You may copy it, give it away or re-use it under th
e terms of the Project Gutenberg License included with this eBook or online at w
ww.gutenberg.org." |
8 --> | 8 --> |
9 <title>Chapter reflow performance test: English prose twice</title> | 9 <title>Chapter reflow performance test: English prose twice</title> |
10 <script src="../resources/runner.js"></script> | 10 <script src="../resources/runner.js"></script> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 </div> | 66 </div> |
67 <script> | 67 <script> |
68 var target = document.getElementById("target"); | 68 var target = document.getElementById("target"); |
69 var style = target.style; | 69 var style = target.style; |
70 | 70 |
71 function test() { | 71 function test() { |
72 style.display = "block"; | 72 style.display = "block"; |
73 | 73 |
74 style.fontSize = "10px"; | 74 style.fontSize = "10px"; |
75 style.width = "280px"; | 75 style.width = "280px"; |
76 PerfTestRunner.forceLayoutOrFullFrame(); | 76 PerfTestRunner.forceLayout(); |
77 style.width = "300px"; | 77 style.width = "300px"; |
78 PerfTestRunner.forceLayoutOrFullFrame(); | 78 PerfTestRunner.forceLayout(); |
79 | 79 |
80 style.fontSize = "12px"; | 80 style.fontSize = "12px"; |
81 style.width = "280px"; | 81 style.width = "280px"; |
82 PerfTestRunner.forceLayoutOrFullFrame(); | 82 PerfTestRunner.forceLayout(); |
83 style.width = "300px"; | 83 style.width = "300px"; |
84 PerfTestRunner.forceLayoutOrFullFrame(); | 84 PerfTestRunner.forceLayout(); |
85 | 85 |
86 style.display = "none"; | 86 style.display = "none"; |
87 } | 87 } |
88 | 88 |
89 PerfTestRunner.measureRunsPerSecond({ | 89 PerfTestRunner.measureRunsPerSecond({ |
90 description: "Measures performance of 2 layouts (using 2 different f
ont-sizes) on a page containing English text.", | 90 description: "Measures performance of 2 layouts (using 2 different f
ont-sizes) on a page containing English text.", |
91 run: test | 91 run: test |
92 }); | 92 }); |
93 </script> | 93 </script> |
94 </body> | 94 </body> |
95 </html> | 95 </html> |
OLD | NEW |