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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/text-node-distributed-crash.html

Issue 1684533002: Rename "tree of trees" to "composed tree". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/shadow-dom.js"></script> 4 <script src="resources/shadow-dom.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 function runTest() { 9 function runTest() {
10 document.body.appendChild( 10 document.body.appendChild(
11 createDOM('div', {'id': 'div1'}, 11 createDOM('div', {'id': 'div1'},
12 createShadowRoot(document.createTextNode('-1910120134')), 12 createShadowRoot(document.createTextNode('-1910120134')),
13 createShadowRoot(createDOM('div', {'id': 'div2'}, 13 createShadowRoot(createDOM('div', {'id': 'div2'},
14 createShadowRoot()), 14 createShadowRoot()),
15 createDOM('shadow', {})))); 15 createDOM('shadow', {}))));
16 document.body.offsetLeft; 16 document.body.offsetLeft;
17 getNodeInTreeOfTrees('div1//div2').appendChild( 17 getNodeInComposedTree('div1//div2').appendChild(
18 createDOM('div', {'id': 'div3'}, 18 createDOM('div', {'id': 'div3'},
19 createDOM('shadow', {}))); 19 createDOM('shadow', {})));
20 document.body.offsetLeft; 20 document.body.offsetLeft;
21 document.body.innerHTML = 'PASS'; 21 document.body.innerHTML = 'PASS';
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 <body onload="runTest()"> 25 <body onload="runTest()">
26 <!-- [bug 113275] styleForText should consider the case where parent --> 26 <!-- [bug 113275] styleForText should consider the case where parent -->
27 <!-- node has no style. --> 27 <!-- node has no style. -->
28 <!-- If this test passes, we can just see 'PASS' without any crash. --> 28 <!-- If this test passes, we can just see 'PASS' without any crash. -->
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698