/*  ===========================================================================
 *  Copyright © 2006-2007 Nokia Corporation.
 *  This material, including documentation and any related
 *  computer programs, is protected by copyright controlled by
 *  Nokia Corporation. All rights are reserved. Copying,
 *  including reproducing, storing, adapting or translating, any
 *  or all of this material requires the prior written consent of
 *  Nokia Corporation. This material also contains confidential
 *  information which may not be disclosed to others without the
 *  prior written consent of Nokia Corporation.
 * ============================================================================
 */

// foobar testmodulename url width widthVal height heightVal expectedError
// Getting thumbnail of image width = 105 , height = 107
[Test]
title Get_ImageThumbnail_Width105_Height107
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\ant.jpg width 105 height 107 0
delete foobar
[Endtest]

// Getting thumbnail of image width = 57 , height = 80
[Test]
title Get_ImageThumbnail_Width57_Height80
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\ant.jpg width 57 height 80 0
delete foobar
[Endtest]

// Getting thumbnail of image width = 150 
[Test]
title Get_ImageThumbnail_Width150
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp width 150 NULL 0
delete foobar
[Endtest]

// Getting thumbnail of image  height = 150
[Test]
title Get_ImageThumbnail_Height150
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp NULL height 150 0
delete foobar
[Endtest]

[Test]
title Get_ImageThumbnail_InVal_URL
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest C\data\imgaes\pictures\dreams.bmp width 80 height 150 1013
delete foobar
[Endtest]



//Negative test case with wrong url

[Test]
title Get_ImageThumbnail_Wrong_URL
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest C:\data\imgaes\wrong.jpg NULL NULL 1003
delete foobar
[Endtest]


// Negative giving  width as negative value
[Test]
title Get_ImageThumbnail_Neg_width
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp width -80 NULL 1002
delete foobar
[Endtest]

// Negative giving height as negative value
[Test]
title Get_ImageThumbnail_Neg_height
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp NULL height -80 1002
delete foobar
[Endtest]

// Negative giving  width as 0 value
[Test]
title Get_ImageThumbnail_0_width
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp width 0 NULL 1002
delete foobar
[Endtest]

// Negative giving height as 0 value
[Test]
title Get_ImageThumbnail_0_height
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getthumbnailtest c:\data\images\pictures\dreams.bmp NULL height 0 1002
delete foobar
[Endtest]


// Cancel operation
[Test]
title Get_ImageThumbnail_Cancel
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar cancelthumbnail c:\data\images\pictures\dreams.bmp NULL NULL  0
delete foobar
[Endtest]




// Negative givign type as int
[Test]
title Get_ImageThumbnail_wrongtype
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar gethumbanilwrongtype WRONG
delete foobar
[Endtest]



// Negative giving  thumbanilsize as list
[Test]
title GetThumbain_ImageThumbnailSize_Neg
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getThumbnailwrongthumbnailsize c:\data\images\pictures\dreams.bmp 1002
delete foobar
[Endtest]


// Negative test cases givign width as string
[Test]
title Get_ImageThumbnail_WidthAsString
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getThumbnailwrongwidthtype c:\data\images\ant.jpg width 105 height 107 1002
delete foobar
[Endtest]

// Negative test cases givign height as string
[Test]
title Get_ImageThumbnail_HeightAsString
create tmediathumbnailprovidertest foobar
// foobar testmodulename url width widthVal height heightVal expectedError
foobar getThumbnailwrongheighttype c:\data\images\ant.jpg width 105 height 107 1002
delete foobar
[Endtest]