Skip to content
This repository
Browse code

[fix #2529429] Update XML-to-string test for IE9.

  • Loading branch information...
commit b8af3d65f05fc8126a4fdba1e7bf2064fd94135c 1 parent 396a000
Jenny Donnelly authored October 21, 2010

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  src/datatype/tests/xml.html
5  src/datatype/tests/xml.html
@@ -68,9 +68,10 @@
68 68
             testFormat: function() {
69 69
                 var origString = "<myroot><item type=\"foo\"><name>Abc</name><rank>1</rank></item><item type=\"bar\"><name>Def</name><rank>2</rank></item><item type=\"bat\"><name>Ghhi</name><rank>3</rank></item></myroot>",
70 70
                     xmldoc = Y.DataType.XML.parse(origString),
71  
-                    newString = Y.DataType.XML.format(xmldoc);
  71
+                    newString = Y.DataType.XML.format(xmldoc),
  72
+                    ie9String = '<myroot xmlns=""><item type="foo"><name>Abc</name><rank>1</rank></item><item type="bar"><name>Def</name><rank>2</rank></item><item type="bat"><name>Ghhi</name><rank>3</rank></item></myroot>';
72 73
 
73  
-                ASSERT.isTrue((newString.indexOf(origString) > -1), "Expected original string within new string.");
  74
+                ASSERT.isTrue((newString.indexOf(origString) > -1) || (newString === ie9String), "Expected new string same as old string.");
74 75
             }
75 76
         });
76 77
 

0 notes on commit b8af3d6

Please sign in to comment.
Something went wrong with that request. Please try again.