am e21bbd24: am a5eaf2ea: am 0d922ec9: Merge "Fix for testThumbnailForInvalidFilePath and testPropertiesForNonExsitingFile failed with HMI75B(4124235)" into honeycomb-mr1

* commit 'e21bbd24a107c3286e8c6f3eca069ebb12ef13da':
  Fix for testThumbnailForInvalidFilePath and testPropertiesForNonExsitingFile failed with HMI75B(4124235)
This commit is contained in:
shailendra
2011-03-18 11:27:09 -07:00
committed by Android Git Automerger
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);
}