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

Side by Side Diff: LayoutTests/svg/foreignObject/invalid-svg-child-renderer.html

Issue 933953003: Move the remaining rendering/svg/RenderSVG* files to layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <div id="container"></div> 4 <div id="container"></div>
5 5
6 PASS: test did not crash. 6 PASS: test did not crash.
7 7
8 <script> 8 <script>
9 /* Build the following shadow tree structure to verify that <svg> elements always 9 /* Build the following shadow tree structure to verify that <svg> elements always
10 * receive a RenderSVGRoot renderer when their parent is <foreignObject>: 10 * receive a LayoutSVGRoot renderer when their parent is <foreignObject>:
11 * <svg> 11 * <svg>
12 * <foreignObject> 12 * <foreignObject>
13 * <svg></svg> 13 * <svg></svg>
14 * </foreignObject> 14 * </foreignObject>
15 * </svg> 15 * </svg>
16 */ 16 */
17 function create_shadow() { 17 function create_shadow() {
18 var root = document.getElementById('container').createShadowRoot(); 18 var root = document.getElementById('container').createShadowRoot();
19 var svg1 = document.createElementNS('http://www.w3.org/2000/svg', 'svg') ; 19 var svg1 = document.createElementNS('http://www.w3.org/2000/svg', 'svg') ;
20 root.appendChild(svg1); 20 root.appendChild(svg1);
21 var fo = document.createElementNS('http://www.w3.org/2000/svg', 'foreign Object'); 21 var fo = document.createElementNS('http://www.w3.org/2000/svg', 'foreign Object');
22 svg1.appendChild(fo); 22 svg1.appendChild(fo);
23 var svg2 = document.createElementNS('http://www.w3.org/2000/svg', 'svg') ; 23 var svg2 = document.createElementNS('http://www.w3.org/2000/svg', 'svg') ;
24 fo.appendChild(svg2); 24 fo.appendChild(svg2);
25 } 25 }
26 26
27 if (window.testRunner) { 27 if (window.testRunner) {
28 create_shadow(); 28 create_shadow();
29 testRunner.dumpAsText(); 29 testRunner.dumpAsText();
30 } 30 }
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/foreignObject/filter-expected.txt ('k') | LayoutTests/svg/foreignObject/mask-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698