couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r904643 - /couchdb/trunk/share/www/script/test/view_xml.js
Date Fri, 29 Jan 2010 22:02:41 GMT
Author: jchris
Date: Fri Jan 29 22:02:41 2010
New Revision: 904643

URL: http://svn.apache.org/viewvc?rev=904643&view=rev
Log:
fix test view for json2.js toXMLString()

Modified:
    couchdb/trunk/share/www/script/test/view_xml.js

Modified: couchdb/trunk/share/www/script/test/view_xml.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/view_xml.js?rev=904643&r1=904642&r2=904643&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/view_xml.js (original)
+++ couchdb/trunk/share/www/script/test/view_xml.js Fri Jan 29 22:02:41 2010
@@ -22,7 +22,7 @@
   var results = db.query(
     "function(doc) {\n" +
     "  var xml = new XML(doc.content);\n" +
-    "  emit(xml.title.text(), null);\n" +
+    "  emit(xml.title.text().toXMLString(), null);\n" +
     "}");
   T(results.total_rows == 2);
   T(results.rows[0].key == "Testing E4X");
@@ -31,7 +31,7 @@
   var results = db.query(
     "function(doc) {\n" +
     "  var xml = new XML(doc.content);\n" +
-    "  emit(xml.title.@id, null);\n" +
+    "  emit(xml.title.@id.toXMLString(), null);\n" +
     "}");
   T(results.total_rows == 2);
   T(results.rows[0].key == "e4x");



Mime
View raw message