OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
tkent
2016/02/08 06:42:30
Probably you want to rename this test file?
hayato
2016/02/08 07:42:54
I'll rename the layout tests in another patch so t
| |
2 | 2 |
3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 | 4 |
5 <div id="host"> | 5 <div id="host"> |
6 <div id="inside"></div> | 6 <div id="inside"></div> |
7 </div> | 7 </div> |
8 | 8 |
9 <script> | 9 <script> |
10 description("getComputedStyle should update style if the parent node in the comp osed tree needs a recalc."); | 10 description("getComputedStyle should update style if the parent node in the flat tree needs a recalc."); |
11 | 11 |
12 var root = document.getElementById("host").createShadowRoot(); | 12 var root = document.getElementById("host").createShadowRoot(); |
13 var wrapper = root.appendChild(document.createElement("div")); | 13 var wrapper = root.appendChild(document.createElement("div")); |
14 wrapper.appendChild(document.createElement("content")); | 14 wrapper.appendChild(document.createElement("content")); |
15 wrapper.offsetTop; | 15 wrapper.offsetTop; |
16 wrapper.style.color = 'red'; | 16 wrapper.style.color = 'red'; |
17 var inside = document.getElementById("inside"); | 17 var inside = document.getElementById("inside"); |
18 shouldBeEqualToString("getComputedStyle(inside).color", "rgb(255, 0, 0)"); | 18 shouldBeEqualToString("getComputedStyle(inside).color", "rgb(255, 0, 0)"); |
19 </script> | 19 </script> |
OLD | NEW |