OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 <style> | 4 <style> |
5 div p:first-child { | 5 div p:first-child { |
6 color: blue; | 6 color: blue; |
7 } | 7 } |
8 div p:last-child { | 8 div p:last-child { |
9 color: purple; | 9 color: purple; |
10 } | 10 } |
(...skipping 27 matching lines...) Expand all Loading... |
38 element = document.getElementById("oneChild").firstChild; | 38 element = document.getElementById("oneChild").firstChild; |
39 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 0, 255)
'"); | 39 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 0, 255)
'"); |
40 element = element.nextSibling; | 40 element = element.nextSibling; |
41 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 0, 0)'"
); | 41 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 0, 0)'"
); |
42 element = element.nextSibling; | 42 element = element.nextSibling; |
43 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(128, 0, 12
8)'"); | 43 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(128, 0, 12
8)'"); |
44 | 44 |
45 document.getElementById("threeChildren").innerHTML = ""; | 45 document.getElementById("threeChildren").innerHTML = ""; |
46 document.getElementById("oneChild").innerHTML = ""; | 46 document.getElementById("oneChild").innerHTML = ""; |
47 </script> | 47 </script> |
48 <script src="../js/resources/js-test-post.js"></script> | |
49 </body> | 48 </body> |
OLD | NEW |