| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body id="target" class="target"> | 6 <body id="target" class="target"> |
| 7 <div></div> | 7 <div></div> |
| 8 <div></div> | 8 <div></div> |
| 9 <div></div> | 9 <div></div> |
| 10 <div></div> | 10 <div></div> |
| 11 <div></div> | 11 <div></div> |
| 12 <div></div> | 12 <div></div> |
| 13 <pre id='console'></pre> | 13 <pre id='console'></pre> |
| 14 </body> | 14 </body> |
| 15 <script> | 15 <script> |
| 16 description('Test for crbug.com/304069: querySelectorAll regression.'); | 16 description('Test for crbug.com/304069: querySelectorAll regression.'); |
| 17 shouldBe("document.body.querySelectorAll('#target > div').length", "6"); | 17 shouldBe("document.body.querySelectorAll('#target > div').length", "6"); |
| 18 shouldBe("document.body.querySelectorAll('#target').length", "0"); | 18 shouldBe("document.body.querySelectorAll('#target').length", "0"); |
| 19 shouldBe("document.body.querySelectorAll('.target > div').length", "6"); | 19 shouldBe("document.body.querySelectorAll('.target > div').length", "6"); |
| 20 shouldBe("document.body.querySelectorAll('.target').length", "0"); | 20 shouldBe("document.body.querySelectorAll('.target').length", "0"); |
| 21 shouldBe("document.body.querySelectorAll('body > div').length", "6"); | 21 shouldBe("document.body.querySelectorAll('body > div').length", "6"); |
| 22 shouldBe("document.body.querySelectorAll('body').length", "0"); | 22 shouldBe("document.body.querySelectorAll('body').length", "0"); |
| 23 shouldBeNull("document.body.querySelector('#target')"); | 23 shouldBeNull("document.body.querySelector('#target')"); |
| 24 shouldBeNull("document.body.querySelector('.target')"); | 24 shouldBeNull("document.body.querySelector('.target')"); |
| 25 shouldBeNull("document.body.querySelector('body')"); | 25 shouldBeNull("document.body.querySelector('body')"); |
| 26 </script> | 26 </script> |
| 27 <script src="../js/resources/js-test-post.js"></script> | |
| 28 </html> | 27 </html> |
| OLD | NEW |