Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 161... Línea 161...
161
</html>
161
</html>
162
EOD;
162
EOD;
163
    /**
163
    /**
164
     * Test that th has scope that is equal to col or row
164
     * Test that th has scope that is equal to col or row
165
     */
165
     */
166
    public function test_check_fail() {
166
    public function test_check_fail(): void {
167
        $results = $this->get_checker_results($this->htmlfail1);
167
        $results = $this->get_checker_results($this->htmlfail1);
168
        $this->assertEquals(2, count($results));
168
        $this->assertEquals(2, count($results));
169
        $this->assertTrue($results[0]->element->tagName == 'th');
169
        $this->assertTrue($results[0]->element->tagName == 'th');
170
        $this->assertTrue($results[1]->element->tagName == 'th');
170
        $this->assertTrue($results[1]->element->tagName == 'th');
Línea 175... Línea 175...
175
    }
175
    }
Línea 176... Línea 176...
176
 
176
 
177
    /**
177
    /**
178
     * Test that th has scope but != col || row. Test that th has no scope
178
     * Test that th has scope but != col || row. Test that th has no scope
179
     */
179
     */
180
    public function test_check_pass() {
180
    public function test_check_pass(): void {
181
        $results = $this->get_checker_results($this->htmlpass1);
181
        $results = $this->get_checker_results($this->htmlpass1);
Línea 182... Línea 182...
182
        $this->assertEmpty($results);
182
        $this->assertEmpty($results);
183
 
183