@@ -246,7 +246,15 @@ function file_ajax_upload() {
// Invalid request.
drupal_set_message(t('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (@size) that this server supports.',array('@size'=>format_size(file_upload_max_size()))),'error');
$this->assertFieldByXpath('//input[@type="submit"]',t('Upload'),'After uploading a file that exceeds the maximum file size, the "Upload" button is displayed.');
$this->drupalPost($path,array(),t('Save'));
$this->assertRaw(t('The file id is %fid.',array('%fid'=>0)),'Submitted without a file.');
}
/**
* Converts php.ini post_max_size value to integer.