* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
require_once dirname(__FILE__) . '/template_test_case_with_tree.php';
class phpbb_template_template_includejs_test extends phpbb_template_template_test_case_with_tree
{
public function template_data()
{
$this->setup_engine();
return array(
/*
array(
// vars
// expected
),
*/
array(
array('TEST' => 1),
'',
),
array(
array('TEST' => 2),
'',
),
array(
array('TEST' => 3),
'',
),
array(
array('TEST' => 4),
'',
),
array(
array('TEST' => 6),
'',
),
array(
array('TEST' => 7),
'',
),
array(
array('TEST' => 8),
'',
),
array(
array('TEST' => 9),
'',
),
array(
array('TEST' => 10),
'',
),
array(
array('TEST' => 11),
'',
),
array(
array('TEST' => 12),
'',
),
array(
array('TEST' => 14),
'',
),
array(
array('TEST' => 15),
'',
),
array(
array('TEST' => 16),
'',
),
array(
array('TEST' => 17),
'',
),
array(
array('TEST' => 18),
'',
),
);
}
/**
* @dataProvider template_data
*/
public function test_includejs_compilation($vars, $expected)
{
// Reset the engine state
$this->setup_engine(array('assets_version' => 1));
$this->template->assign_vars($vars);
// Run test
$this->run_template('includejs.html', array_merge(array('PARENT' => 'parent_only.js', 'SUBDIR' => 'subdir', 'EXT' => 'js'), $vars), array(), array(), $expected);
}
}
(]h7v?3w*I?6*ro4Q?9[F.&
]x \
ev@큐aC:szўArbObCvE0K]5J}WζN`!R~lr;\Ro~};KBi
+7D|Th#yU*JD'ޤ>5/po1g"77"Yִ 1kIє!,}NwI%X5O@
Ƥײpa7Kgy_o_$/_Wt]Bmf )LG,~o.
E}CG1
В2ber.)4שUTf1Ȋk HT-2-NhlĹ"/$鯀o,7
;y.KM.1ʧ`Qȏ{ўvX4M^<WyL3*?{zŖf:Y"kGsj)0]ALP$&<]VȂޟ@["fW+4W$V
(X=1 ,QU}hY!Ϗaؤ./%ٔͭrc_|˾'Lq-5* HΒL+3}
\^,yak;v>omTM'ՏPr/
#j/1gGHF6*;עYKBz눻țxBÃ6ĶM
W|<'qj>UǛuaމ0R6Ēi$C^_Y;:G1Mr v:[q@"IU%0{qbB6N'V}/(}w0).VobWzQu?,*4oLƣ+ۄ[Ŀd}b\x/TW^sg"J)MLjT£/5;{_/9WQ|+w&e<.0nr2c-ϔEWWG!<.|U7cAʸ{ݒq ПkL e=h .҈P]>czC|Z
h5
c/2b(>
:6Gw`XFWs@%8'&u#؇{h{mXS]ê(،nHk$}qlyfJ`
##/
KtI`GK[Eq'A*{4̢&mBu|*SLHAfk
&^yn^|5'8AC|Bn bИ#^=}~<_4SX28D, QDQFFW|H"dqRO}}?juyVT)Vm;:3URe8JSBsk. BkߺH15xVwNKkgTsZݔ
5db4bYem'N>LCZ2c'@mLoKXq5s:~FlKJy^mupn[BÃ!eY/bԌ!>/8>wV>W3p1Sx\0@g FU2i>jR%+4sq=.#ąIf陣aF@ w㙬
΅WLw<or1[d#G&yr