Difference: TestCaseSpacedWikiWordPlugin ( vs. 1)

Revision 12021-01-06 - TWikiGuest

Line: 1 to 1
Added:
>
>

SpacedWikiWordPlugin tests

Description: visual test output from SpacedWikiWordPlugin.

Tests in this topic expect NOAUTOLINK to be off.

  • Set NOAUTOLINK =

WikiWords

Test spacing variable: SPACEDWIKIWORDPLUGIN_SPACE_OUT_WIKI_WORD_LINKS = %SPACEDWIKIWORDPLUGIN_SPACE_OUT_WIKI_WORD_LINKS%

WW topic

WebHome

  • Core spaced out word: Web Home
  • Plugin spaced out: WebHome
  • Expected: Web Home

WW web.topic

TWiki.TWikiVariables

WW Bracket notation, no link label

[[WebStatistics]]

WW Plural

WebHomes

WW Plural bracket notation

[[WebHomes]]

WW Bracket notation: link label same as topic name

[[WebTopicList][WebTopicList]]

WW Bracket notation: link label same as topic name, with web

[[%WEB%.WebTopicList][WebTopicList]]

WW Bracket notation: link label

[[WebPreferences][PrefTopic]]

  • Plugin spaced out: PrefTopic
    • explicitely set to a topic name, so should remain unchanged
  • Expected: PrefTopic

WW Bracket notation: search results: default behaviour

%SEARCH{"SpacedWikiWord" scope="topic" nonoise="on" format="[[$web.$topic][$topic]]"}%

WW Bracket notation: search results: set to spaced out

%SEARCH{"SpacedWikiWord" scope="topic" nonoise="on" format="[[$web.$topic][$percntSPACEOUT{$topic}$percnt]]"}%

WW Bracket notation: anchor, no link label

[[%TOPIC%#TestAnchor]]

WW Bracket notation: anchor, link label

[[%TOPIC%#TestAnchor][TestAnchor]]

  • Plugin spaced out: TestAnchor
    • explicitely set to a topic name, so should remain unchanged
  • Expected: TestAnchor

WW DONTSPACE words

CamelCase, DaimlerChrysler, MasterCard, UnlikelyGibberishWikiWord

WW DONTSPACE words, no links

!McIntosh, !CamelCase, !VentureLab, !UnlikelyGibberishWikiWord

  • Plugin handling: McIntosh, CamelCase, VentureLab, UnlikelyGibberishWikiWord
  • Expected: McIntosh, CamelCase, VentureLab, UnlikelyGibberishWikiWord

Underscore_topics

Test spacing variable: SPACEDWIKIWORDPLUGIN_SPACE_OUT_UNDERSCORE_LINKS = %SPACEDWIKIWORDPLUGIN_SPACE_OUT_UNDERSCORE_LINKS%

UT topic

Underscore_topic

  • Plugin spaced out: Underscore_topic
  • Expected: Underscore_topic

UT web.topic

TestCase.Underscore_topic

  • Plugin spaced out: TestCase.Underscore_topic
  • Expected: TestCase.Underscore_topic

UT Bracket notation, no link label

[[Underscore_topic]]

UT Bracket notation: link label same as topic name

[[Underscore_topic][Underscore_topic]]

UT Plural bracket notation

[[Underscore_topic]]

UT Bracket notation: link label same as topic name, with web

[[%WEB%.Underscore_topic][Underscore_topic]]

UT Bracket notation: link label

[[Underscore_topic][Test topic]]

  • Plugin spaced out: Test topic
    • explicitely set to a topic name, so should remain unchanged
  • Expected: Test topic

UT Bracket notation: search results: default behaviour

%SEARCH{"Underscore_topic" scope="topic" nonoise="on" format="[[$web.$topic][$topic]]"}%

UT Bracket notation: search results: set to spaced out

%SEARCH{"Underscore_topic" scope="topic" nonoise="on" format="[[$web.$topic][$percntSPACEOUT{$topic}$percnt]]"}%

UT Bracket notation: anchor, no link label

[[Underscore_topic#TestAnchor]]

UT Bracket notation: anchor, link label

[[Underscore_topic#TestAnchor][TestAnchor]]

  • Plugin spaced out: TestAnchor
    • explicitely set to a topic name, so should remain unchanged
  • Expected: TestAnchor

UT DONTSPACE words

  • Set SPACEDWIKIWORDPLUGIN_DONTSPACE = My_name, Root_case, Glib_globble

My_name, Root_case, Glib_globble, Unlikely_gibberish_name

  • Plugin handling: My_name, Root_case, Glib_globble, Unlikely_gibberish_name
  • Expected: My_name, Root_case, Glib_globble, Unlikely_gibberish_name

UT DONTSPACE words, no links

  • Set SPACEDWIKIWORDPLUGIN_DONTSPACE = My_name, Root_case, Glib_globble

!My_name, !Root_case, !Glib_globble

  • Plugin handling: My_name, Root_case, Glib_globble, Unlikely_gibberish_name
  • Expected: My_name, Root_case, Glib_globble, Unlikely_gibberish_name

UT Space out

%SPACEOUT{"Human_evolution"}%

  • Plugin handling: Human_evolution
  • Expected: Human evolution

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback