Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Parser / query-selector-id-deep.html
blob3b9fc1aa75ab8732f238dac65af46c8e8fdd17d7
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 var parentDiv = document.body;
7 for (var i = 0; i < 1000; i++) {
8 var div = document.createElement("div");
9 div.id = "foo" + i;
10 div.className = "bar" + i;
11 parentDiv.appendChild(div);
12 parentDiv = div;
15 var h1 = document.createElement("h1");
16 h1.id = "id";
17 h1.className = "class";
18 parentDiv.appendChild(h1);
20 PerfTestRunner.measureRunsPerSecond({
21 description: "This benchmark tests querySelector() for an element that appears in the depths in the document, and is a descendant of an element with a given id",
22 run: function() {
23 for (var i = 0; i < 100; i++) {
24 var res = document.querySelector("#foo998 h1");
26 }});
27 </script>
28 </body>
29 </html>