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

Side by Side Diff: LayoutTests/fast/dom/shadow/reprojection-className-modified.html

Issue 441223002: Update LayoutTests by removing child elements of <shadow> element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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>
2 2
3 <html> 3 <html>
4 <body> 4 <body>
5 5
6 6
7 <div id="host1"> 7 <div id="host1">
8 <div class="selected">A</div> 8 <div class="selected">A</div>
9 <div>B</div> 9 <div>B</div>
10 <div>C</div> 10 <div>C</div>
11 <div class="selected">D</div> 11 <div class="selected">D</div>
12 <div>E</div> 12 <div>E</div>
13 <div id="F">F</div> 13 <div id="F">F</div>
14 </div> 14 </div>
15 15
16 <script> 16 <script>
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.waitUntilDone(); 18 testRunner.waitUntilDone();
19 19
20 var shadowRoot1 = host1.createShadowRoot(); 20 var shadowRoot1 = host1.createShadowRoot();
21 shadowRoot1.innerHTML = '<div id="host2"><shadow><content></content></shadow></d iv>'; 21 shadowRoot1.innerHTML = '<div id="host2"><shadow></shadow></div>';
22 22
23 var host2 = shadowRoot1.getElementById('host2'); 23 var host2 = shadowRoot1.getElementById('host2');
24 var shadowRoot2 = host2.createShadowRoot(); 24 var shadowRoot2 = host2.createShadowRoot();
25 shadowRoot2.innerHTML = '<content select=".selected"></content>'; 25 shadowRoot2.innerHTML = '<content select=".selected"></content>';
26 26
27 setTimeout(function() { 27 setTimeout(function() {
28 F.className = 'selected'; 28 F.className = 'selected';
29 if (window.testRunner) 29 if (window.testRunner)
30 testRunner.notifyDone(); 30 testRunner.notifyDone();
31 }, 0); 31 }, 0);
32 </script> 32 </script>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698