[Zope-CVS] CVS: Packages/Moztop/moztop/content - moztop.js:1.29
Stephan Richter
srichter@cbu.edu
Sun, 23 Mar 2003 13:03:52 -0500
Update of /cvs-repository/Packages/Moztop/moztop/content
In directory cvs.zope.org:/tmp/cvs-serv12654/moztop/content
Modified Files:
moztop.js
Log Message:
Started DAV test function.
Implemented propfind, allprop, propname and prop XML elements.
=== Packages/Moztop/moztop/content/moztop.js 1.28 => 1.29 ===
--- Packages/Moztop/moztop/content/moztop.js:1.28 Sat Mar 22 15:09:19 2003
+++ Packages/Moztop/moztop/content/moztop.js Sun Mar 23 13:03:21 2003
@@ -35,6 +35,27 @@
initSitesManager();
}
+function testDAV() {
+ pf = new PropFind();
+ pf.setAllProp();
+ dump('\n\n'+pf.serialize());
+
+ pf = new PropFind();
+ pf.setPropName();
+ dump('\n\n'+pf.serialize());
+
+ pf = new PropFind();
+ p1 = new Prop('foo.org');
+ p1.addProperty('bar');
+ p1.addProperty('blah');
+ pf.addProp(p1);
+ p2 = new Prop('bar.org');
+ p2.addProperty('foo');
+ p2.addProperty('blah');
+ pf.addProp(p2);
+ dump('\n\n'+pf.serialize());
+}
+
/* Function that is executed when Moztop is started. */
function closeProgram() {
window.close()