Kanchanfisky / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

run and pass MediaWiki test cases #129

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is a first draft of porting the MediaWiki test classes and test cases 
to bliki.
Basically it reads its test input from parserTests.txt which contains test 
input, output, config, options etc.

parserTests-mw.txt: original MediaWiki test case input (for reference)
parserTests.txt: first x test cases adapted to bliki rendering (different 
newlines, spaces etc - minor HTML differences, also MediaWiki seems to append 
an extra phase for HTML cleaning before showing the content which we do here 
already)

-> some of them fail already. We could continue adapting more test cases once 
those are fixed.

The reason I'm not committing these classes is that I'm not quite sure about 
the license of MediaWikiParserTest.java. Basically I ported the PHP classes to 
Java as it did not make sense to re-invent the parsing and regular expressions 
etc - after all they define the input format. I guess this file should thus 
stay under GPL2 and it will probably not be an issue for bliki as no other code 
is using it or linking to it and thus the copyleft does not apply.

Original issue reported on code.google.com by nico.kru...@googlemail.com on 23 Nov 2012 at 10:26

Attachments:

GoogleCodeExporter commented 8 years ago
btw: please put all these files into the following folder for testing:
bliki-core/src/test/java/info/bliki/wiki/filter/

Original comment by nico.kru...@googlemail.com on 23 Nov 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Committed r8398 (very small improvement for HR and BR tags)

Original comment by axelclk@gmail.com on 23 Nov 2012 at 7:49

GoogleCodeExporter commented 8 years ago
Commited r8403

Original comment by axelclk@gmail.com on 23 Nov 2012 at 9:19

GoogleCodeExporter commented 8 years ago
Committed r8404.
I disabled some tests to get a clean build.

Original comment by axelclk@gmail.com on 28 Nov 2012 at 6:23