Coding standards and consistency sweep across new services code in repository project.

Covers spacing, trailing {, @since tags, tabs and copyright headers.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30211 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-09-02 21:10:49 +00:00
parent 8fddcdfd1b
commit 79093bd8ae
228 changed files with 3085 additions and 3161 deletions

View File

@@ -1,20 +1,20 @@
function testGetFormForNonExistentContentNode()
{
// Replace all the digits in the ID with an 'x'.
// Surely that node will not exist...
var corruptedTestDoc = testDoc.replace(/\d/g, "x");
var form = null;
try
{
form = formService.getForm("node", corruptedTestDoc);
}
catch (e)
{
// expected
}
test.assertNull(form, "Form should have not been found: " + testDoc);
// Replace all the digits in the ID with an 'x'.
// Surely that node will not exist...
var corruptedTestDoc = testDoc.replace(/\d/g, "x");
var form = null;
try
{
form = formService.getForm("node", corruptedTestDoc);
}
catch (e)
{
// expected
}
test.assertNull(form, "Form should have not been found: " + testDoc);
}
function testGetFormForContentNode()
@@ -40,8 +40,8 @@ function testGetFormForContentNode()
var fieldDef = null;
for (var x = 0; x < fieldDefs.length; x++)
{
fieldDef = fieldDefs[x];
fieldDefnDataHash[fieldDef.name] = fieldDef;
fieldDef = fieldDefs[x];
fieldDefnDataHash[fieldDef.name] = fieldDef;
}
var nameField = fieldDefnDataHash['cm:name'];