Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / SelectorAPI / document-fragment-nth.html
blobb4cd8236866c0a0642b3bf2af6b81f281f9dbbb7
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
4 description("DocumentFragment.querySelector matching nth-child of fragment.");
6 var fragment = document.createDocumentFragment();
7 for (var i = 0; i < 12; i++) {
8 var child = document.createElement("span");
9 if (i == 11)
10 child.id = "pass";
11 fragment.appendChild(child);
14 shouldBe('fragment.querySelector(":nth-child(12)").id', '"pass"');
15 </script>