summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorPierre Spring <pierre.spring@liip.ch>2008-02-21 17:08:33 +0100
committerPierre Spring <pierre.spring@liip.ch>2008-02-21 17:08:33 +0100
commitb739ff0f3e184faec86f6b027960b65d33d110e9 (patch)
tree53a665e83c04998108a737a7e6568379573bf1d1 /_test
parent0deaa5d831fea288ae11f05e633add33e4de36cb (diff)
downloadrpg-b739ff0f3e184faec86f6b027960b65d33d110e9.tar.gz
rpg-b739ff0f3e184faec86f6b027960b65d33d110e9.tar.bz2
media_justlink
darcs-hash:20080221160833-c3d3e-1afe0835f9ba1af27712bd34e8b0b65e6165284f.gz
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/parser/parser_links.test.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/_test/cases/inc/parser/parser_links.test.php b/_test/cases/inc/parser/parser_links.test.php
index 05ea12f64..86597ba9e 100644
--- a/_test/cases/inc/parser/parser_links.test.php
+++ b/_test/cases/inc/parser/parser_links.test.php
@@ -322,6 +322,21 @@ class TestOfDoku_Parser_Links extends TestOfDoku_Parser {
$this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls);
}
+ function testMediaInternalJustlink() {
+ $this->P->addMode('media',new Doku_Parser_Mode_Media());
+ $this->P->parse('Foo {{img.gif?justlink}} Bar');
+ $calls = array (
+ array('document_start',array()),
+ array('p_open',array()),
+ array('cdata',array("\n".'Foo ')),
+ array('internalmedia',array('img.gif',NULL,NULL,NULL,NULL,'cache','justlink')),
+ array('cdata',array(' Bar'."\n")),
+ array('p_close',array()),
+ array('document_end',array()),
+ );
+ $this->assertEqual(array_map('stripByteIndex',$this->H->calls),$calls);
+ }
+
function testMediaNotImage() {
$this->P->addMode('media',new Doku_Parser_Mode_Media());
$this->P->parse('Foo {{foo.txt?10x10|Some File}} Bar');