Add testcases for ignoring stylesheets and json

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9505 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-10-06 04:32:21 +00:00
parent 3ff9d7af44
commit 1ada0a3c40

View file

@ -164,6 +164,16 @@ class TemplateHandlerTest extends PHPUnit_Framework_TestCase
'<a href="{$layout_info->index_url}" cond="$layout_info->logo_image"><img src="{$layout_info->logo_image}" alt="logo" border="0" class="iePngFix" /></a>',
'<?php if($__Context->layout_info->logo_image){ ?><a href="<?php echo $__Context->layout_info->index_url ?>"><img src="<?php echo $__Context->layout_info->logo_image ?>" alt="logo" border="0" class="iePngFix" /></a><?php } ?>'
),
// error case - ignore stylesheets
array(
'<style>body{background-color:black}</style>',
'<style>body{background-color:black}</style>'
),
// error case - ignore json
array(
'<script type="text/javascript">var json = {hello:"world"};</script>',
'<script type="text/javascript">var json = {hello:"world"};</script>'
),
// issue 103
array(
'<load target="http://aaa.com/aaa.js" />',