Skip to content

Commit

Permalink
Also test for STYLE tags when making the DataForm form view.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Sep 21, 2010
1 parent f34f8e5 commit 5faa77b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/Asset/Wobject/DataForm/viewForm.t
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 5faa77b

Please sign in to comment.