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

Side by Side Diff: LayoutTests/fast/dom/shadow/style-of-distributed-node.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) {
11 var console = document.getElementById('console'); 11 var console = document.getElementById('console');
12 console.innerHTML += message + '\n'; 12 console.innerHTML += message + '\n';
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body> 16 <body>
17 <pre id="console"></div> 17 <pre id="console"></div>
18 <div id="test"> 18 <div id="test">
19 <div id="host" style="color: red"> 19 <div id="host" style="color: red">
20 <div id="child-a"></div> 20 <div id="child-a"></div>
21 <div id="child-b"></div> 21 <div id="child-b"></div>
22 </div> 22 </div>
23 </div> 23 </div>
24 <script> 24 <script>
25 description("Tests to ensure that styles of distributed nodes are different if t heir parent styles are different."); 25 description("Tests to ensure that styles of distributed nodes are different if t heir parent styles are different.");
26 26
27 if (window.testRunner)
28 testRunner.dumpAsText();
29
30 var sr = document.getElementById("host").createShadowRoot(); 27 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>'; 28 sr.innerHTML = '<content select="#child-a"></content><div style="color: blue"><c ontent select="#child-b"></content></div>';
32 29
33 shouldBe('getColorProperty("child-a")', '"rgb(255, 0, 0)"'); 30 shouldBe('getColorProperty("child-a")', '"rgb(255, 0, 0)"');
34 shouldBe('getColorProperty("child-b")', '"rgb(0, 0, 255)"'); 31 shouldBe('getColorProperty("child-b")', '"rgb(0, 0, 255)"');
35 32
36 document.getElementById("test").innerHTML = ''; 33 document.getElementById("test").innerHTML = '';
37 </script> 34 </script>
38 </body> 35 </body>
39 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698