Thumbnail Service: support for asyn creation of thumbnails (unit test's included)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9428 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2008-06-09 10:10:16 +00:00
parent 997b5c0ab5
commit 5e60154bf5
7 changed files with 259 additions and 34 deletions

View File

@@ -0,0 +1,31 @@
function testCreateThumbnail()
{
// Create a thumbnail
var thumbnail = jpgOrig.createThumbnail("medium");
test.assertNotNull(thumbnail);
// Create async thumbnail
// var thumbnail2 = gifOrig.createThumbnail("medium", true);
// test.assertNull(thumbnail2);
// Try and get the created thumbnail
// var count = 0;
// while (true)
// {
// thumbnail2 = gifOrig.getThumbnail("medium");
// if (thumbnail2 != null)
// {
// break;
// }
//else if (count > 1000)
//{
// test.fail("Async thumbanil wasn't created");
//}
// count++;
// }
}
// Execute the tests
testCreateThumbnail();