mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
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:
parent
3ff9d7af44
commit
1ada0a3c40
1 changed files with 10 additions and 0 deletions
|
|
@ -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" />',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue