Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 115... Línea 115...
115
</html>
115
</html>
116
EOD;
116
EOD;
117
    /**
117
    /**
118
     * Test that th does not exist
118
     * Test that th does not exist
119
     */
119
     */
120
    public function test_check_fail() {
120
    public function test_check_fail(): void {
121
        $results = $this->get_checker_results($this->htmlfail1);
121
        $results = $this->get_checker_results($this->htmlfail1);
122
        $this->assertTrue($results[0]->element->tagName == 'table');
122
        $this->assertTrue($results[0]->element->tagName == 'table');
Línea 123... Línea 123...
123
 
123
 
124
        $results = $this->get_checker_results($this->htmlfail2);
124
        $results = $this->get_checker_results($this->htmlfail2);
125
        $this->assertTrue($results[0]->element->tagName == 'table');
125
        $this->assertTrue($results[0]->element->tagName == 'table');
Línea 126... Línea 126...
126
    }
126
    }
127
 
127
 
128
    /**
128
    /**
129
     * Test that th does exist
129
     * Test that th does exist
130
     */
130
     */
131
    public function test_check_pass() {
131
    public function test_check_pass(): void {
Línea 132... Línea 132...
132
        $results = $this->get_checker_results($this->htmlpass1);
132
        $results = $this->get_checker_results($this->htmlpass1);
133
        $this->assertEmpty($results);
133
        $this->assertEmpty($results);