#------------------------------------------------------------------- # WebGUI is Copyright 2001-2009 Plain Black Corporation. #------------------------------------------------------------------- # Please read the legal notices (docs/legal.txt) and the license # (docs/license.txt) that came with this distribution before using # this software. #------------------------------------------------------------------- # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------- use FindBin; use strict; use lib "$FindBin::Bin/lib"; use WebGUI::Test; use WebGUI::HTML; use WebGUI::Session; use Test::More; # increment this value for each test you create my $session = WebGUI::Test->session; my @filterSets = ( { inputText => q#
  
ABC DEF

To provide cost efficient products that put you in control of your own future.

Our Company
Welcome to our Intranet!
#, output => q# ABC DEF To provide cost efficient products that put you in control of your own future. Our Company ABC Company Welcome to our Intranet! #, type => 'all', comment => 'all filter complex HTML', }, { inputText => q!ABC
DEF
123!, output => q!ABC DEF 123 !, type => 'all', comment => 'all filter complex HTML', }, { inputText => q!
Some text in a sentence.
Some more text in a sentence.
!, output => q!Some text in a sentence. Some more text in a sentence. !, type => 'all', comment => 'all filter JT', }, { inputText => q!

Paragraph

^H();,^SQL("select * from users","^0;,^1;")!, output => q!

Paragraph

^H();,^SQL("select * from users","^0;,^1;")!, type => 'macros', comment => 'filter macros, valid or not', }, { inputText => q!

Paragraph

^H();!, output => q!

Paragraph

^H();!, type => 'macros', comment => 'filter macros leaves HTML alone', }, { inputText => q!

Paragraph

!, output => q!Paragraph !, type => 'all', comment => 'all filter HTML', }, { inputText => q!
This is some text here. Let's see what we get when we add a table.
ab
cd
Here's a little more text with bold, strong, and bold strong.
!, output => q!This is some text here. Let's see what we get when we add a table. a b c d Here's a little more text with bold, strong, and bold strong. !, type => 'all', comment => 'all filter complex HTML', }, { inputText => q!

Paragraph

^H();!, output => q|Paragraph ^H();|, type => 'all', comment => 'all filters macros and HTML', }, { inputText => q!