Merge "Fix for testThumbnailForInvalidFilePath and testPropertiesForNonExsitingFile failed with HMI75B(4124235)" into honeycomb-mr1

This commit is contained in:
shailendra
2011-03-18 09:35:37 -07:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -585,7 +585,9 @@ public class MediaItemThumbnailTest extends
try{
final MediaImageItem mii = new MediaImageItem(mVideoEditor, "m1",
imageItemFileName, 3000, renderingMode);
}catch (IllegalArgumentException e){
} catch (IllegalArgumentException e) {
flagForException = true;
} catch (IOException e) {
flagForException = true;
}
assertTrue(" Invalid File Path", flagForException);

View File

@@ -513,6 +513,8 @@ public class MediaPropertiesTest extends
MediaItem.RENDERING_MODE_BLACK_BORDER);
} catch (IllegalArgumentException e) {
flagForException = true;
} catch (IOException e) {
flagForException = true;
}
assertTrue("Media Properties for non exsisting file", flagForException);
}