Commit graph

17 commits

Author SHA1 Message Date
daniel
a3a733e661 Added @group database to ContentHandlerTest.
Apparently, the parser needs database access to handle local links using
a LinkHolderArray. This fails in the "databaseless" test run performed by jenkins.

Change-Id: I7f242abea0c25c07638b4bca4a6732289a3a7e91
2012-06-14 08:39:15 +02:00
daniel
123dd07bfb making Content an interface, introducing AbstractContent as a base class 2012-06-09 13:19:52 +02:00
daniel
48d0bedd78 cleanup and fixes for secondary data updates 2012-06-07 14:57:43 +02:00
daniel
607f9341ec moved rendering logic from Content class to ContentHandler class 2012-06-06 17:38:39 +02:00
daniel
684178dfb6 Use Title, not IContextSource; remove createArticle, etc.
This merges the latest core patch into the Wikidata branch,
implementing suggestions collected on gerrit. Most importantly:

* Methods in the Content class no longer rely on a IContextSource
* createArticle and createEditPage were removed from Contenthandler
2012-05-23 08:53:01 +02:00
daniel
cbc2014b2d Use integers for content_model and content_format.
Representing content_model and content_format as integers in the
database was suggested by Asher mainly to save space.

This change entails some refactoring and renaming, but no big
change in logic.
2012-05-14 10:22:52 +02:00
daniel
060b6c74c6 implement feature switch for ContentHandler database integration, to allow for easy deployment 2012-05-02 15:41:47 +02:00
daniel
c2b8593d02 fixing method signature of serialize() 2012-04-30 17:52:13 +02:00
daniel
ce4a6e26ea reset namespace caches when testing extra namespace handling 2012-04-26 12:11:01 +02:00
daniel
2b740d448a use text/x-wiki instead of application/x-wiki, as per brions comment on wikitech-l 2012-04-25 20:45:32 +02:00
daniel
3a5869cf21 spaces -> tabs 2012-04-25 18:35:36 +02:00
daniel
e1d0291952 use application/x-wiki, not application/x-wikitext 2012-04-25 18:14:53 +02:00
daniel
2e8e6be0aa test ContentHandler::getForTitle() 2012-04-20 21:44:21 +02:00
daniel
f50cee6c28 test ContentHandler::makeContent() 2012-04-20 21:33:13 +02:00
daniel
df3e164505 more tests for ContentHandler::getContentText 2012-04-20 12:42:59 +02:00
daniel
302c6b088e tests for ContentHandler::getContentText 2012-04-19 14:57:10 +02:00
daniel
e02f9b1706 first test cases. found and fixed a bug in Title::isCssJsSubpage 2012-04-18 15:02:21 +02:00