obj = new HTMLPurifier_ChildDef_List(); } function testEmptyInput() { $this->assertResult('', false); } function testSingleLi() { $this->assertResult('
  • '); } function testSomeLi() { $this->assertResult('
  • asdf
  • '); } function testIllegal() { // XXX actually this never gets triggered in practice $this->assertResult('
  • ', '
  • '); } function testOlAtBeginning() { $this->assertResult('
      ', '
      1. '); } function testOlAtBeginningWithOtherJunk() { $this->assertResult('
        1. ', '
          1. '); } function testOlInMiddle() { $this->assertResult('
          2. Foo
            1. Bar
            ', '
          3. Foo
            1. Bar
          4. '); } function testMultipleOl() { $this->assertResult('
              1. ', '
                  1. '); } function testUlAtBeginning() { $this->assertResult('
                      ', '
                      • '); } } // vim: et sw=4 sts=4