[svn r22334] Added info about validation in upload xajax

skala
Arthur Portugal 16 years ago
parent 142e7839b9
commit 97f455b256
  1. 35
      tests/main/inc/lib/upload.xajax.test.php

@ -1,32 +1,25 @@
<?php
/*
* error generate
* Fatal error: Call to undefined
* function uploadprogress_get_info() in
* /var/www/dokeossvn186/main/inc/lib/upload.xajax.php
* on line 17
*
/** To can run this test you need change the line 17 in upload.xajax.php by:
* $ul_info = array();
* if(function_exists('uploadprogress_get_info'))
* {
* $ul_info = uploadprogress_get_info($upload_id);
* }
*/
/*
require_once(api_get_path(LIBRARY_PATH).'upload.xajax.php');
require_once api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php';
//require_once('main/inc/lib/xajax/xajax.inc.php');
require_once(api_get_path(LIBRARY_PATH).'upload.xajax.php');
require_once api_get_path(LIBRARY_PATH).'xajax/xajax.inc.php';
require_once api_get_path(LIBRARY_PATH).'xajax/xajaxResponse.inc.php';
class TestUpdateProgress extends UnitTestCase {
class TestUpdateXajax extends UnitTestCase {
public function TestUpdateProgress1(){
$this->UnitTestCase('Update Progress test');
}
public function testUpdateProgress(){
function testUpdateProgress(){
$div_id='';
$upload_id='';
$waitAfterupload=false;
//$res1=uploadprogress_get_info($upload_id);
$res = updateProgress($div_id, $upload_id, $waitAfterupload);
$res = updateProgress($div_id, $upload_id, $waitAfterupload=false);
$this->assertTrue($res);
}
}*/
}
?>

Loading…
Cancel
Save