Fix up script service tests to expect native JavaScript array return types instead of assuming java arrays

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5869 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-06-06 17:16:43 +00:00
parent c7fddafa1e
commit 30136a58eb
2 changed files with 16 additions and 17 deletions

View File

@@ -1,16 +1,16 @@
var id = root.id;
var name = root.name;
out.println("Name: " + name);
logger.log("Name: " + name);
var type = root.type;
out.println("ID: " + id + " of type: " + type);
logger.log("ID: " + id + " of type: " + type);
var noderef = root.nodeRef;
out.println("NodeRef: " + noderef);
logger.log("NodeRef: " + noderef);
var childList = root.children;
out.println("Has " + childList.length + " child nodes");
logger.log("Has " + childList.length + " child nodes");
var properties = root.properties;
out.println("Property Count: " + properties.length);
logger.log("Property Count: " + properties.length);
var assocs = root.assocs;
out.println("Assoc Count: " + assocs.length);
logger.log("Assoc Count: " + assocs.length);
// test various access mechanisms
var childname1 = childList[0].name;