forward porting quotes in asset title fixTitle test

This commit is contained in:
Colin Kuskie 2008-12-11 19:20:12 +00:00
parent b42d3a80de
commit 665284392f

View file

@ -896,44 +896,49 @@ sub getFixTitleTests {
}, },
{ {
title => '', title => '',
fixed => undef, fixed => undef,
comment => "null string returns the Asset's title", comment => "null string returns the Asset's title",
}, },
{ {
title => 'untitled', title => 'untitled',
fixed => undef, fixed => undef,
comment => "'untitled' returns the Asset's title", comment => "'untitled' returns the Asset's title",
}, },
{ {
title => 'UnTiTlEd', title => 'UnTiTlEd',
fixed => undef, fixed => undef,
comment => "'untitled' in any case returns the Asset's title", comment => "'untitled' in any case returns the Asset's title",
}, },
{ {
title => 'Username: ^@;', title => 'Username: ^@;',
fixed => 'Username: ^@;', fixed => 'Username: ^@;',
comment => "Macros are negated", comment => "Macros are negated",
}, },
{ {
title => '<b>A bold title</b>', title => '<b>A bold title</b>',
fixed => 'A bold title', fixed => 'A bold title',
comment => "Markup is stripped out", comment => "Markup is stripped out",
}, },
{ {
title => 'Javascript: <script>Evil code goes in here</script>', title => 'Javascript: <script>Evil code goes in here</script>',
fixed => 'Javascript: ', fixed => 'Javascript: ',
comment => "javascript removed", comment => "javascript removed",
}, },
{ {
title => 'This is a good Title', title => 'This is a good Title',
fixed => 'This is a good Title', fixed => 'This is a good Title',
comment => "Good titles are passed", comment => "Good titles are passed",
}, },
{ {
title => '<b></b>', title => '<b></b>',
fixed => '', fixed => '',
comment => "If there is no title left after processing, then it is set to untitled.", comment => "If there is no title left after processing, then it is set to untitled.",
}, },
{
title => q|Quotes '"|,
fixed => q|Quotes '"|,
comment => "Quotes are not processed.",
},
); );
} }