mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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'];
|
||||
|
Reference in New Issue
Block a user