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

Side by Side Diff: third_party/WebKit/LayoutTests/dom/domparsing/xmlserializer-prebound-xml-prefix.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> 1 <!DOCTYPE html>
2 <title>XMLSerializer: Pre-bound namespace prefixes</title> 2 <title>XMLSerializer: Pre-bound namespace prefixes</title>
3 <script src=../../resources/testharness.js></script> 3 <script src=../../resources/testharness.js></script>
4 <script src=../../resources/testharnessreport.js></script> 4 <script src=../../resources/testharnessreport.js></script>
5 <div id=log></div> 5 <div id=log></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var s = '<foo xml:space="default"/>'; 8 var s = '<foo xml:space="default"/>';
9 var docFrag = new DOMParser().parseFromString(s, 'text/xml'); 9 var docFrag = new DOMParser().parseFromString(s, 'text/xml');
10 var root = docFrag.removeChild(docFrag.firstChild); 10 var root = docFrag.removeChild(docFrag.firstChild);
11 var result = new XMLSerializer().serializeToString(root); 11 var result = new XMLSerializer().serializeToString(root);
12 assert_equals(result, '<foo xml:space="default"/>'); 12 assert_equals(result, '<foo xml:space="default"/>');
13 }, 'XMLSerializer does not emit a namespace declaration for the \'xml\' prefix.' ); 13 }, 'XMLSerializer does not emit a namespace declaration for the \'xml\' prefix.' );
14 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698