Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / PerformanceTests / Layout / ComplexLongUnique.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/runner.js"></script>
6 </head>
7 <body>
8 <div id="target" style="width: 1000000px; display: none;"></div>
9 <script>
10 var target = document.getElementById("target");
11 var style = target.style;
12
13 var s = "e\u0300";
14 var length = 10000;
15 var startCode = 0x4E00;
16 for (var i = 0; i < length; ++i) {
17     s = s + String.fromCharCode(i + startCode) + "\u0300";
18 }
19
20 function test() {
21     if (window.internals)
22         window.internals.invalidateFontCache();
23
24     style.display = "block";
25     target.offsetLeft;
26     target.textContent = s;
27     target.offsetLeft;
28     target.textContent = "";
29     style.display = "none";
30 }
31
32 PerfTestRunner.measureRunsPerSecond({ run: test });
33 </script>
34 </body>
35 </html>