| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <style> | 5 <style> |
| 6 div.class { background-color: red; } | 6 div.class { background-color: red; } |
| 7 div.class:nth-of-type(3n | 7 div.class:nth-of-type(3n |
| 8 + 1) {background-color: green;} | 8 + 1) {background-color: green;} |
| 9 </style> | 9 </style> |
| 10 | 10 |
| 11 </head> | 11 </head> |
| 12 <body> | 12 <body> |
| 13 <div tabindex=1" id="first" class="class"></div> | 13 <div tabindex=1" id="first" class="class"></div> |
| 14 <div tabindex=2" id="second" class="class"></div> | 14 <div tabindex=2" id="second" class="class"></div> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 27 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(255, 0, 0)'"); | 27 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(255, 0, 0)'"); |
| 28 | 28 |
| 29 el = document.getElementById("third"); | 29 el = document.getElementById("third"); |
| 30 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(255, 0, 0)'"); | 30 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(255, 0, 0)'"); |
| 31 | 31 |
| 32 el = document.getElementById("fourth"); | 32 el = document.getElementById("fourth"); |
| 33 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(0, 128, 0)'"); | 33 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('back
ground-color')", "'rgb(0, 128, 0)'"); |
| 34 </script> | 34 </script> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |