Also test for STYLE tags when making the DataForm form view.

This commit is contained in:
Colin Kuskie 2010-09-21 14:28:04 -07:00
parent f34f8e59bd
commit 5faa77b2fb

View file

@ -44,7 +44,7 @@ $df = $df->cloneFromDb;
#----------------------------------------------------------------------------
# Tests
plan tests => 3; # Increment this number for each test you create
plan tests => 4; # Increment this number for each test you create
#----------------------------------------------------------------------------
# Test getListTemplateVars
@ -54,6 +54,7 @@ my $output = $df->view();
ok $output, 'got some output';
ok $output !~ m/<link [^>+] href/msx, 'no CSS link tags in the output';
ok $output !~ m/<script [^>+] src/msx, 'no JavaScript script tags with src in the output';
ok $output !~ m/<script [^>+] src /msx, 'no JavaScript script tags with src in the output';
ok $output !~ m/ <style> /msx, 'no JavaScript script tags with src in the output';
#vim:ft=perl