| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
| 3 <style> | 3 <style> |
| 4 .test { width: 50px; height: 50px; } | 4 .test { width: 50px; height: 50px; } |
| 5 #t1:hover { background-color: green } | 5 #t1:hover { background-color: green } |
| 6 #t2:hover .class { background-color: green } | 6 #t2:hover .class { background-color: green } |
| 7 #t3:hover span { background-color: green } | 7 #t3:hover span { background-color: green } |
| 8 </style> | 8 </style> |
| 9 <div id="t1" class="test"> | 9 <div id="t1" class="test"> |
| 10 <div></div> | 10 <div></div> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 var r2 = t2.querySelector(".class"); | 49 var r2 = t2.querySelector(".class"); |
| 50 var r3 = t3.querySelectorAll("span"); | 50 var r3 = t3.querySelectorAll("span"); |
| 51 | 51 |
| 52 shouldBe("getComputedStyle(r1, null).backgroundColor", "transparent"); | 52 shouldBe("getComputedStyle(r1, null).backgroundColor", "transparent"); |
| 53 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); | 53 shouldBe("getComputedStyle(r2, null).backgroundColor", "transparent"); |
| 54 shouldBe("r3.length", "2"); | 54 shouldBe("r3.length", "2"); |
| 55 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "transparent"); | 55 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "transparent"); |
| 56 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "transparent"); | 56 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "transparent"); |
| 57 | 57 |
| 58 hoverElement(t1); | 58 hoverElement(t1); |
| 59 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 59 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1"); |
| 60 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); | 60 shouldBe("getComputedStyle(r1, null).backgroundColor", "green"); |
| 61 | 61 |
| 62 hoverElement(t2); | 62 hoverElement(t2); |
| 63 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 63 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2"); |
| 64 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); | 64 shouldBe("getComputedStyle(r2, null).backgroundColor", "green"); |
| 65 | 65 |
| 66 hoverElement(t3); | 66 hoverElement(t3); |
| 67 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); | 67 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "3"); |
| 68 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "green"); | 68 shouldBe("getComputedStyle(r3[0], null).backgroundColor", "green"); |
| 69 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "green"); | 69 shouldBe("getComputedStyle(r3[1], null).backgroundColor", "green"); |
| 70 | 70 |
| 71 </script> | 71 </script> |
| OLD | NEW |