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

Side by Side Diff: LayoutTests/fast/dom/shadow/reprojection-id-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 id="selected">A</div> 8 <div id="selected">A</div>
9 <div>B</div> 9 <div>B</div>
10 <div>C</div> 10 <div>C</div>
11 <div>D</div> 11 <div>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 A = selected; 28 A = selected;
29 A.id = ''; 29 A.id = '';
30 F.id = 'selected'; 30 F.id = 'selected';
31 if (window.testRunner) 31 if (window.testRunner)
32 testRunner.notifyDone(); 32 testRunner.notifyDone();
33 }, 0); 33 }, 0);
34 </script> 34 </script>
35 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698