diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2015-09-18 21:58:58 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2015-09-18 21:58:58 +0200 |
| commit | 729cf0b66d9ccaf381a2150f75fb57c1c98c3b4c (patch) | |
| tree | 83db7ddbc4c4bd5d13784a1ec4b6b8621d0697e8 /tests | |
| parent | ba4f1f02ea2f99eb2be367530f28e0146fa303f7 (diff) | |
| download | grauphel-729cf0b66d9ccaf381a2150f75fb57c1c98c3b4c.tar.gz grauphel-729cf0b66d9ccaf381a2150f75fb57c1c98c3b4c.zip | |
Add travis-ci.org configuration
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Lib/Converter/HtmlTest.php | 5 | ||||
| -rw-r--r-- | tests/data/formattest.html | 2 | ||||
| -rw-r--r-- | tests/data/xss.html | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/tests/Lib/Converter/HtmlTest.php b/tests/Lib/Converter/HtmlTest.php index 0a66ee4..b02e39c 100644 --- a/tests/Lib/Converter/HtmlTest.php +++ b/tests/Lib/Converter/HtmlTest.php @@ -1,4 +1,5 @@ <?php +require_once __DIR__ . '/../../../lib/converter/base.php'; require_once __DIR__ . '/../../../lib/converter/html.php'; class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase @@ -7,7 +8,7 @@ class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase { $input = file_get_contents(__DIR__ . '/../../data/formattest.tomboynotecontent'); - $converter = new OCA\Grauphel\Lib\Converter\Html(); + $converter = new OCA\Grauphel\Converter\Html(); $output = $converter->convert($input); $this->assertEquals( file_get_contents(__DIR__ . '/../../data/formattest.html'), @@ -19,7 +20,7 @@ class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase { $input = file_get_contents(__DIR__ . '/../../data/xss.tomboynotecontent'); - $converter = new OCA\Grauphel\Lib\Converter\Html(); + $converter = new OCA\Grauphel\Converter\Html(); $output = $converter->convert($input); $this->assertEquals( file_get_contents(__DIR__ . '/../../data/xss.html'), diff --git a/tests/data/formattest.html b/tests/data/formattest.html index 5bc3709..a7dbe14 100644 --- a/tests/data/formattest.html +++ b/tests/data/formattest.html @@ -20,7 +20,7 @@ Formatierungen:<br /> <i>Kursiver Text</i><br /> <span class="strikethrough">Durchgestrichener Text</span><br /> <span class="highlight">Hervorgehobener Text</span><br /> -<tt>Feste Breite</tt><br /> +<span style="font-family:monospace; white-space: pre-wrap">Feste Breite</span><br /> <br /> Schriftgrößen:<br /> <span class="small">klein</span><br /> diff --git a/tests/data/xss.html b/tests/data/xss.html index 1908ce2..98551bf 100644 --- a/tests/data/xss.html +++ b/tests/data/xss.html @@ -4,8 +4,8 @@ Was ist denn <a href="foo">bar<br /> Link mit fett drin: <a href="Formattest.htm">Format<b>te</b>st</a>.<br /> <ul><li>Liste<br /> </li><li>ein <b>bisschen</b> fett<br /> -</li><li>mo<tt>nospac</tt>ed<br /> +</li><li>mo<span style="font-family:monospace; white-space: pre-wrap">nospac</span>ed<br /> </li><li></li></ul></div></div></div></div></div></li></ul> <br /> -Link zum <a href="Formattest.htm"><span class="highlight">Form</span>a<tt>tt</tt>e<span class="huge">st</span></a>.<br /> +Link zum <a href="Formattest.htm"><span class="highlight">Form</span>a<span style="font-family:monospace; white-space: pre-wrap">tt</span>e<span class="huge">st</span></a>.<br /> Link mit <a href="Sonder">zeichen.htm">Sonder">zeichen</a>.<br /> |
