Module:File/tests/all

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

Documentation for this module may be created at Module:File/tests/all/doc

return {
	{
		typeOfFileName = 'Xtra-Long file name with upper case file extension',
		fileName = 'Princess Alexandra of Denmark (later Queen Alexandra, wife of Edward VII) with her two eldest sons, Prince Albert Victor (Eddy) and George Frederick Ernest Albert (later George V).JPG',
		extension = 'JPG',
		extensionLower = 'jpg',
		extensionUpper = 'JPG',
		woExtension = 'Princess Alexandra of Denmark (later Queen Alexandra, wife of Edward VII) with her two eldest sons, Prince Albert Victor (Eddy) and George Frederick Ernest Albert (later George V)',
		mime = 'image/jpeg',
		maxthumbIsNumber = false
	},
	{
		typeOfFileName = 'Existing file with some dots (.) and quotation marks (") in its name',
		fileName = '" onmouseover="alert(\'There is a security vulnerable. Please contact the next admin.\')" target=".png',
		extension = 'png',
		extensionLower = 'png',
		extensionUpper = 'PNG',
		woExtension = '" onmouseover="alert(\'There is a security vulnerable. Please contact the next admin.\')" target="',
		mime = 'image/png',
		maxthumbIsNumber = true,
		dateWorkCreated = '2011-11-18'
	},
	{
		typeOfFileName = 'File title missing extension',
		fileName = 'Something created justaspage butnotuploaded',
		extension = 'Something created justaspage butnotuploaded',
		extensionLower = 'something created justaspage butnotuploaded',
		extensionUpper = 'SOMETHING CREATED JUSTASPAGE BUTNOTUPLOADED',
		woExtension = 'Something created justaspage butnotuploaded',
		mime = 'unknown',
		maxthumbIsNumber = false
	},
	{
		typeOfFileName = 'File does not exist',
		fileName = 'DOESNOTEXIST-0a8de8c83.Png',
		extension = 'Png',
		extensionLower = 'png',
		extensionUpper = 'PNG',
		woExtension = 'DOESNOTEXIST-0a8de8c83',
		mime = 'image/png',
		maxthumbIsNumber = true
	},
	{
		typeOfFileName = 'File does not exist and has unknown extension',
		fileName = 'DOESNOTEXIST-0a8de8c83.UnKnowN',
		extension = 'UnKnowN',
		extensionLower = 'unknown',
		extensionUpper = 'UNKNOWN',
		woExtension = 'DOESNOTEXIST-0a8de8c83',
		mime = 'unknown',
		maxthumbIsNumber = false
	}
}