diff options
author | Matt Butcher <[email protected]> | 2013-05-01 11:28:53 -0500 |
---|---|---|
committer | Matt Butcher <[email protected]> | 2013-05-01 11:28:53 -0500 |
commit | bae705bdea510398f654ffbfc25454b75c6e8a65 (patch) | |
tree | 666a4b34b43baf1a1e4747a7d43bc594d5672e1c /test | |
parent | d9e49351a1de560f21d4b8880f9d04fe00c6ff07 (diff) |
Added parse error tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/HTML5/Parser/DOMTreeBuilderTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/HTML5/Parser/DOMTreeBuilderTest.php b/test/HTML5/Parser/DOMTreeBuilderTest.php index de7c54c..677bac6 100644 --- a/test/HTML5/Parser/DOMTreeBuilderTest.php +++ b/test/HTML5/Parser/DOMTreeBuilderTest.php @@ -129,7 +129,13 @@ class DOMTreeBuilderTest extends \HTML5\Tests\TestCase { } public function testParseErrors() { - $this->markTestIncomplete("Incomplete."); + $html = "<!DOCTYPE html><html><mathml><![CDATA[test"; + $doc = $this->parse($html); + + // We're JUST testing that we can access errors. Actual testing of + // error messages happen in the Tokenizer's tests. + $this->assertGreaterThan(0, count($doc->errors)); + $this->assertTrue(is_string($doc->errors[0])); } public function testProcessingInstruction() { |