diff options
author | Anika Henke <anika@selfthinker.org> | 2014-01-26 17:38:22 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2014-01-26 17:38:22 +0000 |
commit | 8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d (patch) | |
tree | 1e3ce9edacc852741af07c070176bd04fb61c4b4 /_test/tests/inc/parser/parser_table.test.php | |
parent | c5393ecb1aa570830d21e9dc95b4c21cd9aa9c01 (diff) | |
parent | ca605ff6763b98b580278988791dc5e57fc05a74 (diff) | |
download | rpg-8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d.tar.gz rpg-8fe276f7d4bf70c4a798e1c5e7bb3da72a33877d.tar.bz2 |
Merge remote-tracking branch 'origin/master' into video-audio
Diffstat (limited to '_test/tests/inc/parser/parser_table.test.php')
-rw-r--r-- | _test/tests/inc/parser/parser_table.test.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_test/tests/inc/parser/parser_table.test.php b/_test/tests/inc/parser/parser_table.test.php index 542a307b8..bc19ebff9 100644 --- a/_test/tests/inc/parser/parser_table.test.php +++ b/_test/tests/inc/parser/parser_table.test.php @@ -626,5 +626,24 @@ def'); ); $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); } + + function testTable_FS1833() { + $syntax = " \n| Row 0 Col 1 |\n"; + $this->P->addMode('table',new Doku_Parser_Mode_Table()); + $this->P->parse($syntax); + $calls = array ( + array('document_start',array()), + array('table_open',array(1, 1, 2)), + array('tablerow_open',array()), + array('tablecell_open',array(1,'left',1)), + array('cdata',array(' Row 0 Col 1 ')), + array('tablecell_close',array()), + array('tablerow_close',array()), + array('table_close',array(strlen($syntax))), + array('document_end',array()), + ); + $this->assertEquals(array_map('stripbyteindex',$this->H->calls),$calls); + } + } |