mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix template syntax for Context::unloadFile() and related unit tests
This commit is contained in:
parent
855e12a5de
commit
4c62231e88
2 changed files with 3 additions and 3 deletions
|
|
@ -816,7 +816,7 @@ class TemplateHandler
|
||||||
case 'scss':
|
case 'scss':
|
||||||
if($doUnload)
|
if($doUnload)
|
||||||
{
|
{
|
||||||
$result = vsprintf("Context::unloadFile('%s', '%s', '%s';", [
|
$result = vsprintf("Context::unloadFile('%s', '%s', '%s');", [
|
||||||
$attr['target'] ?? '', $attr['targetie'] ?? '', $attr['media'] ?? '',
|
$attr['target'] ?? '', $attr['targetie'] ?? '', $attr['media'] ?? '',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,12 +110,12 @@ class TemplateHandlerTest extends \Codeception\TestCase\Test
|
||||||
// <load target="style.css">
|
// <load target="style.css">
|
||||||
array(
|
array(
|
||||||
'<dummy /><load target="css/style.css" /><dummy />',
|
'<dummy /><load target="css/style.css" /><dummy />',
|
||||||
'?><dummy /><!--#Meta:tests/unit/classes/template/css/style.css--><?php $__tmp=array(\'tests/unit/classes/template/css/style.css\',\'\',\'\',\'\',array());Context::loadFile($__tmp);unset($__tmp); ?><dummy />'
|
'?><dummy /><!--#Meta:tests/unit/classes/template/css/style.css--><?php Context::loadFile([\'tests/unit/classes/template/css/style.css\', \'\', \'\', \'\', []]); ?><dummy />'
|
||||||
),
|
),
|
||||||
// <unload target="style.css">
|
// <unload target="style.css">
|
||||||
array(
|
array(
|
||||||
'<dummy /><unload target="css/style.css" /><dummy />',
|
'<dummy /><unload target="css/style.css" /><dummy />',
|
||||||
'?><dummy /><?php Context::unloadFile(\'tests/unit/classes/template/css/style.css\',\'\',\'\'); ?><dummy />'
|
'?><dummy /><?php Context::unloadFile(\'tests/unit/classes/template/css/style.css\', \'\', \'\'); ?><dummy />'
|
||||||
),
|
),
|
||||||
// <!--%import("../../modules/page/tpl/filter/insert_config.xml")-->
|
// <!--%import("../../modules/page/tpl/filter/insert_config.xml")-->
|
||||||
array(
|
array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue