summaryrefslogtreecommitdiff
path: root/_test/cases/inc/parser/parser_i18n.test.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-12-01 20:16:22 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-12-01 20:16:22 +0100
commitd947d6ab91f9939c59003d22b66a98e0a017d420 (patch)
tree006e96f6fbfe2852c8c9f7d3b02ceb8e65b17a9d /_test/cases/inc/parser/parser_i18n.test.php
parent2e3d6a012d63f60e006fe88e0c61031d2a96c26d (diff)
downloadrpg-d947d6ab91f9939c59003d22b66a98e0a017d420.tar.gz
rpg-d947d6ab91f9939c59003d22b66a98e0a017d420.tar.bz2
fixed some test cases
Ignore-this: d14f492efbb4ef316895ef402308176e darcs-hash:20091201191622-7ad00-19deabc9820a59b447e891b7576c19641d554487.gz
Diffstat (limited to '_test/cases/inc/parser/parser_i18n.test.php')
-rw-r--r--_test/cases/inc/parser/parser_i18n.test.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/_test/cases/inc/parser/parser_i18n.test.php b/_test/cases/inc/parser/parser_i18n.test.php
index 3601f604c..8d587fe0e 100644
--- a/_test/cases/inc/parser/parser_i18n.test.php
+++ b/_test/cases/inc/parser/parser_i18n.test.php
@@ -2,11 +2,11 @@
require_once 'parser.inc.php';
class TestOfDoku_Parser_i18n extends TestOfDoku_Parser {
-
+
function TestOfDoku_Parser_i18n() {
$this->UnitTestCase('TestOfDoku_Parser_i18n');
}
-
+
function testFormatting() {
$formats = array (
'strong', 'emphasis', 'underline', 'monospace',
@@ -53,7 +53,7 @@ class TestOfDoku_Parser_i18n extends TestOfDoku_Parser {
);
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
-
+
function testHeader() {
$this->P->addMode('header',new Doku_Parser_Mode_Header());
$this->P->parse("Foo\n ==== Iñtërnâtiônàlizætiøn ==== \n Bar");
@@ -74,7 +74,7 @@ class TestOfDoku_Parser_i18n extends TestOfDoku_Parser {
);
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
-
+
function testTable() {
$this->P->addMode('table',new Doku_Parser_Mode_Table());
$this->P->parse('
@@ -89,24 +89,24 @@ def');
array('p_close',array()),
array('table_open',array(3,2)),
array('tablerow_open',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Row 0 Col 1 ')),
array('tablecell_close',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Iñtërnâtiônàlizætiøn ')),
array('tablecell_close',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Row 0 Col 3 ')),
array('tablecell_close',array()),
array('tablerow_close',array()),
array('tablerow_open',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Row 1 Col 1 ')),
array('tablecell_close',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Iñtërnâtiônàlizætiøn ')),
array('tablecell_close',array()),
- array('tablecell_open',array(1,'left')),
+ array('tablecell_open',array(1,'left',1)),
array('cdata',array(' Row 1 Col 3 ')),
array('tablecell_close',array()),
array('tablerow_close',array()),
@@ -119,7 +119,7 @@ def');
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
-
+
function testAcronym() {
$t = array('Iñtërnâtiônàlizætiøn');
$this->P->addMode('acronym',new Doku_Parser_Mode_Acronym($t));
@@ -135,7 +135,7 @@ def');
);
$this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls);
}
-
+
function testInterwiki() {
$this->P->addMode('internallink',new Doku_Parser_Mode_InternalLink());
$this->P->parse("Foo [[wp>Iñtërnâtiônàlizætiøn|Iñtërnâtiônàlizætiøn]] Bar");
@@ -150,7 +150,7 @@ def');
);
$this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls);
}
-
+
function testInternalLink() {
$this->P->addMode('internallink',new Doku_Parser_Mode_InternalLink());
$this->P->parse("Foo [[x:Iñtërnâtiônàlizætiøn:y:foo_bar:z|Iñtërnâtiônàlizætiøn]] Bar");