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

Side by Side Diff: LayoutTests/fast/dom/shadow/distribution-update-recalcs-style.html

Issue 1169613002: Remove unnecessary testRunner.dumpAsText in LayoutTests/fast/dom/shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.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 16 matching lines...) Expand all
27 var sr = document.getElementById("host").createShadowRoot(); 27 var sr = document.getElementById("host").createShadowRoot();
28 sr.innerHTML = '<style>div { color: blue }</style><div><content id="contentId" s elect="#div-child"></content></div>'; 28 sr.innerHTML = '<style>div { color: blue }</style><div><content id="contentId" s elect="#div-child"></content></div>';
29 29
30 shouldBe('getColorProperty("div-child")', '"rgb(0, 0, 255)"'); 30 shouldBe('getColorProperty("div-child")', '"rgb(0, 0, 255)"');
31 shouldBe('getColorProperty("span-child")', '"rgb(255, 0, 0)"'); 31 shouldBe('getColorProperty("span-child")', '"rgb(255, 0, 0)"');
32 32
33 sr.getElementById("contentId").select = "#span-child"; 33 sr.getElementById("contentId").select = "#span-child";
34 shouldBe('getColorProperty("div-child")', '"rgb(255, 0, 0)"'); 34 shouldBe('getColorProperty("div-child")', '"rgb(255, 0, 0)"');
35 shouldBe('getColorProperty("span-child")', '"rgb(0, 0, 255)"'); 35 shouldBe('getColorProperty("span-child")', '"rgb(0, 0, 255)"');
36 36
37 if (window.testRunner) { 37 if (window.testRunner)
38 testRunner.dumpAsText();
39 testRunner.notifyDone(); 38 testRunner.notifyDone();
40 }
41
42 </script> 39 </script>
43 </body> 40 </body>
44 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698