diff --git a/module/action/test/lib/action.unittest.class.php b/module/action/test/lib/action.unittest.class.php
index 81a7e3232f..4edcaaa409 100755
--- a/module/action/test/lib/action.unittest.class.php
+++ b/module/action/test/lib/action.unittest.class.php
@@ -888,7 +888,7 @@ class actionTest
if(dao::isError()) return dao::getError();
- return $output;
+ return str_replace("\n", '', $output);
}
/**
diff --git a/module/action/test/model/printchanges.php b/module/action/test/model/printchanges.php
index 51ed935269..16a73676a4 100755
--- a/module/action/test/model/printchanges.php
+++ b/module/action/test/model/printchanges.php
@@ -7,11 +7,11 @@ title=测试 actionModel::printChanges();
timeout=0
cid=14920
-- 执行actionTest模块的printChangesTest方法,参数是'task', 1, array @
-- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories1 @修改了 任务状态,旧值为 "待处理",新值为 "进行中"。
' . "\n"
-- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories2 @修改了 指派给,旧值为 "admin",新值为 "user1"。
' . "\n" . '修改了 任务状态,旧值为 "待处理",新值为 "进行中"。
' . "\n"
-- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories3 @修改了 任务描述,区别为:' . "\n" . "
<del>旧描述</del><ins>新描述</ins>" -- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories3, false @修改了 任务描述,区别为:' . "\n" . "" . "\n" . "
<del>旧描述</del><ins>新描述</ins>" +- 执行actionTest模块的printChangesTest方法,参数是'task', 1, array @0 +- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories1 @修改了 任务状态,旧值为 "待处理",新值为 "进行中"。
旧描述新描述
+- 执行actionTest模块的printChangesTest方法,参数是'task', 1, $histories3, false @修改了 任务描述,区别为:旧描述新描述
*/ @@ -27,26 +27,26 @@ su('admin'); $actionTest = new actionTest(); // 步骤1:空历史记录测试 -r($actionTest->printChangesTest('task', 1, array())) && p() && e(''); +r($actionTest->printChangesTest('task', 1, array())) && p() && e('0'); // 步骤2:单个字段变更测试 $histories1 = array( (object)array('field' => 'status', 'old' => '待处理', 'new' => '进行中', 'diff' => '') ); -r($actionTest->printChangesTest('task', 1, $histories1)) && p() && e('修改了 任务状态,旧值为 "待处理",新值为 "进行中"。旧描述新描述
<del>旧描述</del><ins>新描述</ins>"); +r($actionTest->printChangesTest('task', 1, $histories3)) && p() && e("修改了 任务描述,区别为:
旧描述新描述
"); // 步骤5:canChangeTag为false的diff测试 -r($actionTest->printChangesTest('task', 1, $histories3, false)) && p() && e('修改了 任务描述,区别为:' . "\n" . "" . "\n" . "旧描述新描述
<del>旧描述</del><ins>新描述</ins>"); \ No newline at end of file +r($actionTest->printChangesTest('task', 1, $histories3, false)) && p() && e("修改了 任务描述,区别为:
");旧描述新描述