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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/XMLSerializer-xml-namespace.html

Issue 2667303004: Move tests for DOMParser and XMLSerializer to dom/domparsing/. (Closed)
Patch Set: Created 3 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
(Empty)
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script type="text/javascript">
4 function runTest()
5 {
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 var target = document.getElementById("target");
10
11 var xmlns = "http://www.w3.org/XML/1998/namespace";
12
13 // XML with correct xml prefix on space
14 var xml1 = document.createElementNS(xmlns, "foo");
15 xml1.setAttributeNS(xmlns, 'xml:space', 'preserve');
16
17 var xml2 = document.createElementNS(xmlns, "bar");
18 xml2.setAttributeNS(xmlns, 'space', 'default');
19
20 target.appendChild(xml1);
21 target.appendChild(xml2);
22
23 var serializer = new XMLSerializer();
24 var xmlString = serializer.serializeToString(target);
25
26 var outputText = document.getElementById("output");
27 outputText.textContent = xmlString;
28 }
29 </script>
30 </head>
31 <body onload="runTest()">
32 <div id="target"/>
33 <div id="output"/>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698