diff options
author | Asmir Mustafic <[email protected]> | 2014-02-04 09:05:47 +0100 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2014-02-04 09:05:47 +0100 |
commit | 4c79dfe22d635ba0e562117826d56a1d13b35e97 (patch) | |
tree | af6efb3ca3f5446170523529ac84900a2009ce86 /test/HTML5/Parser/TokenizerTest.php | |
parent | bc81d6d0f7a0b14a812901361469f540c404fbed (diff) |
Added a test for 8785fc5775df52dd4a6b63677ebd08f8301ffdcc
Diffstat (limited to 'test/HTML5/Parser/TokenizerTest.php')
-rw-r--r-- | test/HTML5/Parser/TokenizerTest.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php index edc427c..4487320 100644 --- a/test/HTML5/Parser/TokenizerTest.php +++ b/test/HTML5/Parser/TokenizerTest.php @@ -109,7 +109,7 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $e1 = $events->get(0); $this->assertEquals('error', $e1['name']); - // FIXME: Once the text processor is done, need to verify that the + // FIXME: Once the text processor is done, need to verify that the // tokens are transformed correctly into text. } @@ -139,12 +139,12 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $succeed = array( '</a>' => 'a', '</test>' => 'test', - '</test + '</test >' => 'test', '</thisIsTheTagThatDoesntEndItJustGoesOnAndOnMyFriend>' => 'thisIsTheTagThatDoesntEndItJustGoesOnAndOnMyFriend', // See 8.2.4.10, which requires this and does not say error. - '</a<b>' => 'a<b', + '</a<b>' => 'a<b', ); $this->isAllGood('endTag', 2, $succeed); @@ -271,8 +271,8 @@ class TokenizerTest extends \HTML5\Tests\TestCase { public function testProcessorInstruction() { $good = array( '<?hph ?>' => 'hph', - '<?hph echo "Hello World"; ?>' => array('hph', 'echo "Hello World"; '), - "<?hph \necho 'Hello World';\n?>" => array('hph', "echo 'Hello World';\n"), + '<?hph echo "Hello World"; ?>' => array('hph', 'echo "Hello World"; '), + "<?hph \necho 'Hello World';\n?>" => array('hph', "echo 'Hello World';\n"), ); $this->isAllGood('pi', 2, $good); } @@ -328,6 +328,7 @@ class TokenizerTest extends \HTML5\Tests\TestCase { $good = array( '<foo bar="baz">' => array('foo', array('bar' => 'baz'), FALSE), '<foo bar=" baz ">' => array('foo', array('bar' => ' baz '), FALSE), + "<foo bar=\"\nbaz\n\">" => array('foo', array('bar' => "\nbaz\n"), FALSE), "<foo bar='baz'>" => array('foo', array('bar' => 'baz'), FALSE), '<foo bar="A full sentence.">' => array('foo', array('bar' => 'A full sentence.'), FALSE), "<foo a='1' b=\"2\">" => array('foo', array('a' => '1', 'b' => '2'), FALSE), |