FrontPage 

TB Wiki

Login

TestProcessorGetBlock in 'raw' format

{{TableOfContents}}

Here is the test page for the 'GetBlock' processor.

This processor gets blocks from other pages (or from the current page)
and shows the content where the processor block is defined.

= Test Data =
Some data used for these tests is on: [[SamplePage]]

Here is more data, in the form of normal and hidden blocks on this page:

{{{HereBlock1
this is a non-hidden block, on this page
}}}

{{{#HereBlock2
this is a hidden block, on this page
}}}

= Test 1 - get block 1 from SamplePage =

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
SamplePage:SampleBlock
}} }
}}}

== result output ==
Here is the result from the processor:

{{{#!GetBlock
SamplePage:SampleBlock
}}}

== expected result ==
The expected output should be:

{{{
This is a block of text that appears in the block: SampleBlock
on the page SamplePage.  It is not very interesting,
but shows how a block can be read directly from a page.
}}}

= Test 2 - get block 2 from SamplePage =

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
SamplePage:SampleBlock2
}} }
}}}

== result output ==
Here is the result from the processor:

{{{#!GetBlock
SamplePage:SampleBlock2
}}}

== expected result ==
The expected output should be:

{{{
This is another block of text
}}}

= Test 3 - get non-hidden block from this page =

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
:HereBlock1
}} }
}}}

== result output ==
Here is the result from the processor:

{{{#!GetBlock
:HereBlock1
}}}

== expected result ==
The expected output should be:

{{{
this is a non-hidden block, on this page
}}}

= Test 4 - get hidden block from this page =

== processor block ==
Here is the processor block:
{{{
{{{#!GetBlock
:HereBlock2
}} }
}}}

== result output ==
Here is the result from the processor:

{{{#!GetBlock
:HereBlock2
}}}

== expected result ==
The expected output should be:

{{{
this is a hidden block, on this page
}}}


TBWiki engine 1.9.2 by Tim Bird