воскресенье, 24 февраля 2013 г., 5:10:03 UTC+4 пользователь Tobias Beer
написал:
>
> Hi Yakov,
>
> This issue seems to be closed in my implementation, isn't it?
>>
>
> How would I go about testing / verifying that assertation? Copying your
> slices reg into a vanilla TW and test it?
>
> Well, as I pointed previously, there are two ways to start testing:
* change code of a vanilla TW directly: put this line
TiddlyWiki.prototype.slicesRE =
/(?:^([\'\/]{0,2})~?([\.\w]+)\:\1[\t\x20]*([^\n]+)[\t\x20]*$)|(?:^\|\x20?([\'\/]{0,2})~?([^\|\s\:\~\'\/]|(?:[^\|\s~\'\/][^\|\n\f\r]*[^\|\s\:\'\/]))\:?\4[\x20\t]*\|[\t\x20]*([^\n\t\x20](?:[^\n]*[^\n\t\x20])?)[\t\x20]*\|$)/gm;
instead of current slicesRE definition;
* or create a plugin which has that line and than this one:
store.slices = {};
There's of'course one more thing: creating extra tests for core (mechanism
Mario mentioned) but I have no idea where to start.
> Cheers, Tobias.
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.