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

Side by Side Diff: LayoutTests/fast/innerHTML/innerHTML-svg-read.html

Issue 52203002: Revert "Move innerHTML and outerHTML to Element" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | LayoutTests/fast/innerHTML/innerHTML-svg-read-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../js/resources/js-test-pre.js"></script>
4 </head>
5 <body>
6 <div style="visibility:hidden">
7 <svg id="emptysvg"></svg>
8 <svg id="rectsvg"><rect/></svg>
9 <svg id="foreign" width="100" height="30"><foreignObject width="100" height="3 0"><p>html</p></foreignObject></svg>
10 </div>
11 <script>
12 description("Test that accessing innerHTML and outerHTML properties works on SVG elements");
13
14 var tests = [
15 ['innerHTML("emptysvg")' , ''],
16 ['innerHTML("rectsvg")' , '<rect></rect>' ],
17 ['innerHTML("foreign")' , '<foreignObject width="100" height="30"><p>html</ p></foreignObject>' ],
18 ['outerHTML("emptysvg")' , '<svg id="emptysvg"></svg>'],
19 ['outerHTML("rectsvg")' , '<svg id="rectsvg"><rect></rect></svg>' ],
20 ];
21
22 function innerHTML(id) {
23 return document.getElementById(id).innerHTML;
24 }
25
26 function outerHTML(id) {
27 return document.getElementById(id).outerHTML;
28 }
29
30 for (var i in tests) {
31 shouldBeEqualToString(tests[i][0], tests[i][1]);
32 }
33 </script>
34 <script src="../js/resources/js-test-post.js"></script>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/innerHTML/innerHTML-svg-read-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698