(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-11) was last changed on 12-Aug-2007 21:34 by YvesPiguet  

This page was created on 04-Sep-2006 03:44 by 217.162.145.188

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
Hello! Good Site! Thanks you! zkipvaciyyqljf
I'm posting my unit tests for easy reference. Note that the formatting rules of this wiki forced me to insert an extra ~ in front of closing triple braces. Remember this should you want to copy from the edit page.
The following is a list alternating input and expected output lines.
{{{
# one
<ol><li>one</li></ol>
# one\n# two
<ol><li>one</li><li>two</li></ol>
# one\n\n# two
<ol><li>one</li><li>two</li></ol>
- one
<ul><li>one</li></ul>
# one\n- two
<ol><li>one</li></ol><ul><li>two</li></ul>
**bold**
<strong>bold</strong>
//italic//
<em>italic</em>
**//bold italic**//italic
<strong><em>bold italic</em></strong><em>italic</em>
//**bold italic//**bold
<em><strong>bold italic</strong></em><strong>bold</strong>
= foo
= foo
== foo
<h2>foo</h2>
=== foo
<h3>foo</h3>
==== foo
<h4>foo</h4>
===== foo
===== foo
== foo ==
<h2>foo </h2>
== foo\nbar
<h2>foo</h2><p>bar</p>
foo\n\nbar
foo<p>bar</p>
foo\nbar
foo<br />bar
{{{\nfoo\n~}}}
<pre class="real">foo\n</pre>
{{{\nfoo~}}}
<code>\nfoo</code>
foo {{{bar~}}}
foo <code>bar</code>
----
<hr />
-----
<hr />
}}}
Some XPATH tests that test class attributes as well. The exact results are useless to other developers. The cases that Oddmuse is known to handle well, however, is of interest.
{{{
[[http://www.wikicreole.org/]]
//a[@class="url http outside"][@href="http://www.wikicreole.org/"][text()="http://www.wikicreole.org/"]
http://www.wikicreole.org/
//a[@class="url http"][@href="http://www.wikicreole.org/"][text()="http://www.wikicreole.org/"]
http://www.wikicreole.org/.
//a[@class="url http"][@href="http://www.wikicreole.org/"][text()="http://www.wikicreole.org/"]
[[http://www.wikicreole.org/|Visit the WikiCreole website]]
//a[@class="url http outside"][@href="http://www.wikicreole.org/"][text()="Visit the WikiCreole website"]
[[http://www.wikicreole.org/|Visit the\nWikiCreole website]]
//a[@class="url http outside"][@href="http://www.wikicreole.org/"][text()="Visit the\nWikiCreole website"]
[[link]]
//a[text()="link"]
[[link|Go to my page]]
//a[@class="local"][@href="http://localhost/test.pl/link"][text()="Go to my page"]
[[link|Go to\nmy page]]
//a[@class="local"][@href="http://localhost/test.pl/link"][text()="Go to\nmy page"]
{{pic}}
//a[@class="image"][@href="http://localhost/test.pl/pic"][img[@class="upload"][@src="http://localhost/test.pl/download/pic"][@alt="pic"]]
{{http://example.com/}}
//a[@class="image"][@href="http://example.com/"][img[@class="url outside"][@src="http://example.com/"][@alt="http://example.com/"]]
[[link|{{pic}}]]
//a[@class="image"][@href="http://localhost/test.pl/link"][img[@class="upload"][@src="http://localhost/test.pl/download/pic"][@alt="link"]]
[[link|{{http://example.com/}}]]
//a[@class="image"][@href="http://localhost/test.pl/link"][img[@class="url outside"][@src="http://example.com/"][@alt="link"]]
[[http://example.com/|{{pic}}]]
//a[@class="image outside"][@href="http://example.com/"][img[@class="upload"][@src="http://localhost/test.pl/download/pic"][@alt="pic"]]
{{http://example.com/}}
//a[@class="image outside"][@href="http://example.com/"][img[@class="url outside"][@src="http://example.com/"]]
[[http://example.com/|{{http://mu.org/}}]]
//a[@class="image outside"][@href="http://example.com/"][img[@class="url outside"][@src="http://mu.org/"]]
}}}
Just as a note, a tilde escapes a closing }}} and I have "repaired" the examples above in this way. I think that's an undocumented feature of JSPWiki. --[ChuckSmith]
Version Date Modified Size Author Changes ... Change note
11 12-Aug-2007 21:34 3.541 kB YvesPiguet to previous restore (spam)
10 12-Aug-2007 20:00 0.046 kB 213.146.118.96 to previous | to last htcspbikwj
9 07-Sep-2006 15:46 3.541 kB 80.254.169.243 to previous | to last thanks
8 07-Sep-2006 11:08 3.512 kB ChuckSmith to previous | to last tilde escapes closing triple curly brackets
7 07-Sep-2006 11:07 3.508 kB ChuckSmith to previous | to last ~ escapes }}}
6 07-Sep-2006 04:01 3.343 kB Alex Schröder to previous | to last updated unit tests
5 05-Sep-2006 12:07 2.832 kB Alex Schröder to previous | to last added test for [[url]] which i had missed before
4 04-Sep-2006 14:24 2.695 kB 217.162.145.188 to previous | to last removed two alternative hr syntaxes
3 04-Sep-2006 03:55 2.721 kB 217.162.145.188 to previous | to last
2 04-Sep-2006 03:55 2.721 kB null to previous | to last
1 04-Sep-2006 03:44 2.776 kB 217.162.145.188 to last
« This page (revision-11) was last changed on 12-Aug-2007 21:34 by YvesPiguet