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

Side by Side Diff: third_party/WebKit/LayoutTests/dom/domparsing/xhtml-serialize.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
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <body> 3 <body>
4 <p>This test checks whether serialized invalid XHTML is valid XML (for bug 9901) .</p> 4 <p>This test checks whether serialized invalid XHTML is valid XML (for bug 9901) .</p>
5 <p>If the test passes, you'll see a series of 'PASS' messages below.</p> 5 <p>If the test passes, you'll see a series of 'PASS' messages below.</p>
6 <pre id="console"></pre> 6 <pre id="console"></pre>
7 7
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 var doc = (new DOMParser()).parseFromString('<input xmlns="http://www.w3.org/199 9/xhtml">123</input>', 'text/xml'); 32 var doc = (new DOMParser()).parseFromString('<input xmlns="http://www.w3.org/199 9/xhtml">123</input>', 'text/xml');
33 var str = (new XMLSerializer()).serializeToString(doc); 33 var str = (new XMLSerializer()).serializeToString(doc);
34 34
35 shouldBe('doc.firstChild.firstChild.nodeValue', '123'); 35 shouldBe('doc.firstChild.firstChild.nodeValue', '123');
36 shouldBe('str', '<input xmlns=\"http://www.w3.org/1999/xhtml\">123</input>'); 36 shouldBe('str', '<input xmlns=\"http://www.w3.org/1999/xhtml\">123</input>');
37 </script> 37 </script>
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698