Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/getComputedStyle-composed-parent-dirty.html

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698