- remove the test code.

This commit is contained in:
wangchunsheng
2011-05-20 06:34:37 +00:00
parent ee93b7862b
commit ff8ceac8f7
7 changed files with 0 additions and 185 deletions
-21
View File
@@ -1,21 +0,0 @@
<input type='checkbox' name='checkbox[]' value='a' />texta
<input type='checkbox' name='checkbox[]' value='b' />textb
<input type='checkbox' name='checkbox[]' value='c' />textc
<input type='checkbox' name='checkbox[]' value='a' checked ='checked' />texta
<input type='checkbox' name='checkbox[]' value='b' />textb
<input type='checkbox' name='checkbox[]' value='c' />textc
<input type='checkbox' name='checkbox[]' value='a' checked ='checked' />texta
<input type='checkbox' name='checkbox[]' value='b' checked ='checked' />textb
<input type='checkbox' name='checkbox[]' value='c' />textc
<input type='checkbox' name='checkbox[]' value='a' />texta
<input type='checkbox' name='checkbox[]' value='b' />textb
<input type='checkbox' name='checkbox[]' value='c' />textc
<input type='checkbox' name='checkbox[]' value='a' style="color:red" />texta
<input type='checkbox' name='checkbox[]' value='b' style="color:red" />textb
<input type='checkbox' name='checkbox[]' value='c' style="color:red" />textc
bool(false)
-31
View File
@@ -1,31 +0,0 @@
#!/usr/bin/env php
<?php
/**
* 测试html的checkbox方法。
*
* 1. 正常情况。
* 2. 验证单个selectedItems是否正确。
* 3. 验证多个selectedItems是否正确。
* 4. 验证selectedItems包含options里面的某一个key,验证selected是否正确。
* 5. 验证attrib传递是否正确。
* 6. 验证options为空,是否返回false。
*
* @author chunsheng.wang <chunsheng@cnezsoft.com>
* @version $Id$
*/
include '../front.class.php';
$options['a'] = 'texta';
$options['b'] = 'textb';
$options['c'] = 'textc';
echo html::checkbox('checkbox', $options) . "\n";
echo html::checkbox('checkbox', $options, 'a') . "\n";
echo html::checkbox('checkbox', $options, 'a,b') . "\n";
echo html::checkbox('checkbox', $options, 'ab') . "\n";
echo html::checkbox('checkbox', $options, '', 'style="color:red"') . "\n";
var_dump(html::checkbox('checkbox', array()));
<<<expect
html_checkbox.expect
expect
?>
-13
View File
@@ -1,13 +0,0 @@
<input type='radio' name='radio' value='a' />texta
<input type='radio' name='radio' value='b' />textb
<input type='radio' name='radio' value='c' />textc
<input type='radio' name='radio' value='a' />texta
<input type='radio' name='radio' value='b' />textb
<input type='radio' name='radio' value='c' />textc
<input type='radio' name='radio' value='a' />texta
<input type='radio' name='radio' value='b' />textb
<input type='radio' name='radio' value='c' />textc
<input type='radio' name='radio' value='a' style="color:red" />texta
<input type='radio' name='radio' value='b' style="color:red" />textb
<input type='radio' name='radio' value='c' style="color:red" />textc
bool(false)
-29
View File
@@ -1,29 +0,0 @@
#!/usr/bin/env php
<?php
/**
* 测试html的radio方法。
*
* 1. 正常情况。
* 2. 验证单个selectedItems是否正确。
* 3. 验证多个selectedItems是否正确。(没有一个选中。)
* 4. 验证attrib传递是否正确。
* 5. 验证options为空,是否返回false。
*
* @author chunsheng.wang <chunsheng@cnezsoft.com>
* @version $Id$
*/
include '../front.class.php';
$options['a'] = 'texta';
$options['b'] = 'textb';
$options['c'] = 'textc';
echo html::radio('radio', $options);
echo html::radio('radio', $options, 'a');
echo html::radio('radio', $options, 'a,b');
echo html::radio('radio', $options, '', 'style="color:red"');
var_dump(html::radio('radio', array()));
<<<expect
html_radio.expect
expect
?>
-31
View File
@@ -1,31 +0,0 @@
<select name='select' id='select' />
<option value='a'>texta</option>
<option value='b'>textb</option>
<option value='c'>textc</option>
</select>
<select name='select[]' id='select' />
<option value='a'>texta</option>
<option value='b'>textb</option>
<option value='c'>textc</option>
</select>
<select name='select' id='select' />
<option value='a' selected='selected'>texta</option>
<option value='b'>textb</option>
<option value='c'>textc</option>
</select>
<select name='select' id='select' />
<option value='a' selected='selected'>texta</option>
<option value='b'>textb</option>
<option value='c' selected='selected'>textc</option>
</select>
<select name='select' id='select' />
<option value='a'>texta</option>
<option value='b'>textb</option>
<option value='c'>textc</option>
</select>
<select name='select' id='select' style="color:red" />
<option value='a'>texta</option>
<option value='b'>textb</option>
<option value='c'>textc</option>
</select>
bool(false)
-34
View File
@@ -1,34 +0,0 @@
#!/usr/bin/env php
<?php
/**
* 测试html的select方法。
*
* 1. 正常情况。
* 2. name中含有中括弧,验证生成的id是否正确。
* 3. name中含有中括弧,且有数字,验证生成的id是否正确。
* 4. 验证单个selectedItems是否正确。
* 5. 验证多个selectedItems是否正确。
* 6. 验证selectedItems包含options里面的某一个key,验证selected是否正确。
* 7. 验证attri的传毒是否正确。
* 8. 验证options为空,是否返回false。
*
* @author chunsheng.wang <chunsheng@cnezsoft.com>
* @version $Id$
*/
include '../front.class.php';
$options['a'] = 'texta';
$options['b'] = 'textb';
$options['c'] = 'textc';
echo html::select('select', $options);
echo html::select('select[]', $options);
echo html::select('select', $options, 'a');
echo html::select('select', $options, 'a,c');
echo html::select('select', $options, 'ab');
echo html::select('select', $options, '', 'style="color:red"');
var_dump(html::select('select', array()));
<<<expect
html_select.expect
expect
?>
-26
View File
@@ -1,26 +0,0 @@
#!/usr/bin/env php
<?php
/**
* 测试html的selectgroup方法。
*
* 1. 正常情况。
* 2. name中含有中括弧,验证生成的id是否正确。
* 3. name中含有中括弧,且有数字,验证生成的id是否正确。
* 4. 验证单个selectedItems是否正确。
* 5. 验证多个selectedItems是否正确。
* 6. 验证selectedItems包含options里面的某一个key,验证selected是否正确。
* 7. 验证attri的传毒是否正确。
* 8. 验证options为空,是否返回false。
*
* @author chunsheng.wang <chunsheng@cnezsoft.com>
* @version $Id$
*/
include '../front.class.php';
$groups['group1']['a'] = 'texta';
$groups['group1']['b'] = 'textb';
$groups['group2']['c'] = 'textc';
$groups['group2']['d'] = 'textd';
echo html::selectgroup('select', $groups);
?>