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 <script> | 5 <script> |
6 function getColorProperty(id) { | 6 function getColorProperty(id) { |
7 return window.getComputedStyle(document.getElementById(id)).color; | 7 return window.getComputedStyle(document.getElementById(id)).color; |
8 } | 8 } |
9 | 9 |
10 function log(message) { | 10 function log(message) { |
(...skipping 17 matching lines...) Expand all Loading... |
28 testRunner.dumpAsText(); | 28 testRunner.dumpAsText(); |
29 | 29 |
30 var sr = document.getElementById("host").createShadowRoot(); | 30 var sr = document.getElementById("host").createShadowRoot(); |
31 sr.innerHTML = '<content select="#child-a"></content><div style="color: blue"><c
ontent select="#child-b"></content></div>'; | 31 sr.innerHTML = '<content select="#child-a"></content><div style="color: blue"><c
ontent select="#child-b"></content></div>'; |
32 | 32 |
33 shouldBe('getColorProperty("child-a")', '"rgb(255, 0, 0)"'); | 33 shouldBe('getColorProperty("child-a")', '"rgb(255, 0, 0)"'); |
34 shouldBe('getColorProperty("child-b")', '"rgb(0, 0, 255)"'); | 34 shouldBe('getColorProperty("child-b")', '"rgb(0, 0, 255)"'); |
35 | 35 |
36 document.getElementById("test").innerHTML = ''; | 36 document.getElementById("test").innerHTML = ''; |
37 </script> | 37 </script> |
38 <script src="../../js/resources/js-test-post.js"></script> | |
39 </body> | 38 </body> |
40 </html> | 39 </html> |
OLD | NEW |