diff options
author | Guy Brand <gb@unistra.fr> | 2013-12-08 18:04:50 +0100 |
---|---|---|
committer | Guy Brand <gb@unistra.fr> | 2013-12-08 18:04:50 +0100 |
commit | fb23e32bcb0a62b9d404f89139601341f926c1d9 (patch) | |
tree | 4d30240af3098ab3bf8b6862b412373f988ab2ea /_test/tests/inc/parser/parser_table.test.php | |
parent | 2877053aad7cf3e245eaedfe042ccc4ebfcf273b (diff) | |
parent | 8c4759c9d38a21eb352498a8035944ee019e7738 (diff) | |
download | rpg-fb23e32bcb0a62b9d404f89139601341f926c1d9.tar.gz rpg-fb23e32bcb0a62b9d404f89139601341f926c1d9.tar.bz2 |
Merge branch 'master' into stable
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); + } + } |