Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Parser / query-selector-all-class-last.html
blob77f9578f6d3344e912b569bb8ad5339327f75e1b
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6 for (var i = 0; i < 1000; i++) {
7 var div = document.createElement("div");
8 div.id = "foo" + i;
9 div.className = "bar" + i;
10 document.body.appendChild(div);
13 var h1 = document.createElement("h1");
14 h1.id = "id";
15 h1.className = "class";
16 document.body.lastChild.appendChild(h1);
18 PerfTestRunner.measureRunsPerSecond({
19 description: "This benchmark tests querySelectorAll() for an element that appears near the tail of the document, and is a child of an element with a given id",
20 run: function() {
21 for (var i = 0; i < 100; i++) {
22 var res = document.querySelectorAll(".bar999 > h1");
24 }});
25 </script>
26 </body>
27 </html>