AddIncorrectNameImageTest
waitForElementPresent link=Image Gallery Test Page
clickAndWait link=Image Gallery Test Page
clickAndWait //tr[4]/td[1]/a[1]/b
clickAndWait //b
clickAndWait //input[@value='Add Image']
pause 5000
waitForElementPresent link=Use the classic uploader.
click link=Use the classic uploader.
waitForElementPresent _31_file
type _31_file L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\imagegallery\test_image.jp
assertAlert Image names must end with one of the following extensions: .bmp, .gif, .jpeg, .jpg, .png, .tif, .tiff