[Kde-pim] Highlighting plain-text mails (linklocator)

Julien Richard-Foy julien.rf at no-log.org
Fri Sep 11 23:55:48 BST 2009


> Please extend the unit tests of linklocator to include your testcases, then
> it can be committed if no one else objects.
> Extending the unit tests in the first place would have saved you from
> writing a Qt test app for this :)

Indeed, I didn't notice the "tests" folder… But I don't want to compile all 
kdelibs + kdepimlibs to get the tests work… I gave you a sample of testcases 
in my previous mail, it should be easy to integrate them to the current 
testcases, I think.
It must be something like the attached "testcase" file (to be put in 
tests/testlinklocator.cpp, in the testHtmlConvert_data function).

> Oh, and I just found a bug about the old behavior, see bug 206935 at
> https://bugs.kde.org/show_bug.cgi?id=206935.
> I haven't verified that the bug report is true.

You can see it in your current version of KMail. This behaviour should be 
fixed by my patch.

Regards,
Julien
-------------- next part --------------
QTest::newRow( "" ) << "Ce paragraphe _contient_ des mots ou des _groupes de mots_ à mettre en forme…" << 0x01 << "Ce paragraphe <u>contient</u> des mots ou des <u>groupes de mots</u> à mettre en forme…";
QTest::newRow( "" ) << "Ce texte *a l'air* de _fonctionner_, à condition d’utiliser le guillemet ASCII." << 0x01 << "Ce texte <b>a l'air</b> de <u>fonctionner</u>, à condition d’utiliser le guillemet ASCII.";
QTest::newRow( "" ) << "Un répertoire /est/ un *dossier* où on peut mettre des *fichiers*." << 0x01 << "Un répertoire <i>est</i> un <b>dossier</b> où on peut mettre des <b>fichiers</b>.";
QTest::newRow( "" ) << "*Ça fait plaisir de pouvoir utiliser des lettres accentuées dans du texte mis en forme*." << 0x01 << "<b>Ça fait plaisir de pouvoir utiliser des lettres accentuées dans du texte mis en forme</b>";
QTest::newRow( "" ) << "Je vais tenter de repérer des faux positif*" << 0x01 << "Je vais tenter de repérer des faux positif*";
QTest::newRow( "" ) << "*Ouais !* *Yes!*" << 0x01 << "<b>Ouais !</b> <b>Yes!</b>";
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list