mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Enforce the order of parameters to the load directive
This commit is contained in:
parent
ca5c96d02a
commit
9a98e9220d
2 changed files with 37 additions and 41 deletions
|
|
@ -179,8 +179,8 @@ class TemplateParserV2Test extends \Codeception\Test\Unit
|
|||
$this->assertEquals($target, $this->_parse($source));
|
||||
|
||||
// Blade-style SCSS with media and variables
|
||||
$source = "@load('assets/hello.scss', 'print', \$vars)";
|
||||
$target = "<?php \$this->_v2_loadResource('assets/hello.scss', 'print', \$__Context->vars); ?>";
|
||||
$source = "@load('assets/hello.scss', 'print', 0, \$vars)";
|
||||
$target = "<?php \$this->_v2_loadResource('assets/hello.scss', 'print', 0, \$__Context->vars); ?>";
|
||||
$this->assertEquals($target, $this->_parse($source));
|
||||
|
||||
$source = "@load ('../hello.css', 'screen')";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue