Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 74... Línea 74...
74
</html>
74
</html>
75
EOD;
75
EOD;
76
    /**
76
    /**
77
     * Test for missing image alt text.
77
     * Test for missing image alt text.
78
     */
78
     */
79
    public function test_check_fail() {
79
    public function test_check_fail(): void {
80
        $results = $this->get_checker_results($this->htmlfail1);
80
        $results = $this->get_checker_results($this->htmlfail1);
81
        $this->assertTrue($results[0]->element->tagName == 'img');
81
        $this->assertTrue($results[0]->element->tagName == 'img');
Línea 82... Línea 82...
82
 
82
 
83
        $results = $this->get_checker_results($this->htmlfail2);
83
        $results = $this->get_checker_results($this->htmlfail2);
84
        $this->assertTrue($results[0]->element->tagName == 'img');
84
        $this->assertTrue($results[0]->element->tagName == 'img');
Línea 85... Línea 85...
85
    }
85
    }
86
 
86
 
87
    /**
87
    /**
88
     * Test for present image alt text.
88
     * Test for present image alt text.
89
     */
89
     */
90
    public function test_check_pass() {
90
    public function test_check_pass(): void {
91
        $results = $this->get_checker_results($this->htmlpass);
91
        $results = $this->get_checker_results($this->htmlpass);
92
        $this->assertTrue(count($results) == 0);
92
        $this->assertTrue(count($results) == 0);