3 class HTMLPurifier_AttrTransform_InputTest
extends HTMLPurifier_AttrTransformHarness
8 $this->obj
= new HTMLPurifier_AttrTransform_Input();
11 function testEmptyInput() {
12 $this->assertResult(array());
15 function testInvalidCheckedWithEmpty() {
16 $this->assertResult(array('checked' => 'checked'), array());
19 function testInvalidCheckedWithPassword() {
20 $this->assertResult(array(
21 'checked' => 'checked',
28 function testValidCheckedWithUcCheckbox() {
29 $this->assertResult(array(
30 'checked' => 'checked',
36 function testInvalidMaxlength() {
37 $this->assertResult(array(
47 function testValidMaxLength() {
48 $this->assertResult(array(
53 // these two are really bad test-cases
55 function testSizeWithCheckbox() {
56 $this->assertResult(array(
67 function testSizeWithText() {
68 $this->assertResult(array(
70 'size' => '100px', // spurious value, to indicate no validation takes place
77 function testInvalidSrc() {
78 $this->assertResult(array(
83 function testMissingValue() {
84 $this->assertResult(array(