diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-07-10 11:43:52 -0400 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-07-10 11:43:52 -0400 |
commit | 9725eb19f8dbc124febe0189799c0b2af0215c63 (patch) | |
tree | 33a29f5ab0cf1527b9daa38ed8123a412e8659cb /tests/template/template_includejs_test.php | |
parent | 0894a1377013965657f29a42202a630ba83daf95 (diff) | |
download | forums-9725eb19f8dbc124febe0189799c0b2af0215c63.tar forums-9725eb19f8dbc124febe0189799c0b2af0215c63.tar.gz forums-9725eb19f8dbc124febe0189799c0b2af0215c63.tar.bz2 forums-9725eb19f8dbc124febe0189799c0b2af0215c63.tar.xz forums-9725eb19f8dbc124febe0189799c0b2af0215c63.zip |
[feature/twig] Unit tests for includejs
PHPBB3-11598
Diffstat (limited to 'tests/template/template_includejs_test.php')
-rw-r--r-- | tests/template/template_includejs_test.php | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/tests/template/template_includejs_test.php b/tests/template/template_includejs_test.php index a57b219150..0061163eeb 100644 --- a/tests/template/template_includejs_test.php +++ b/tests/template/template_includejs_test.php @@ -18,12 +18,24 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes // Prepare correct result $scripts = array( - '<script type="text/javascript" src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=1"></script>', - '<script type="text/javascript" src="' . $this->test_path . '/parent_templates/parent_only.js?assets_version=1"></script>', - '<script type="text/javascript" src="' . $this->test_path . '/templates/child_only.js?assets_version=1"></script>', - '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>', - '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/subsubdir/parent_only.js?assets_version=1"></script>', - '<script type="text/javascript" src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/parent_and_child.js?assets_version=0"></script>', + '<script src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>', + '<script src="' . $this->test_path . '/templates/parent_and_child.js?test=1&assets_version=0"></script>', + '<script src="' . $this->test_path . '/templates/parent_and_child.js?test=1;assets_version=0"></script>', + '<script src="' . $this->test_path . '/parent_templates/parent_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/child_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/subdir/subsubdir/parent_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/subdir/parent_only.js?assets_version=1"></script>', + '<script src="' . $this->test_path . '/templates/child_only.js?test1=1&test2=2&assets_version=1#test3"></script>', + '<script src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1&test2=2&assets_version=1#test3"></script>', + '<script src="' . $this->test_path . '/parent_templates/parent_only.js?test1=1;test2=2;assets_version=1#test3"></script>', + '<script src="' . $this->test_path . '/parent_templates/parent_only.js?test1="&assets_version=1#test3"></script>', + '<script src="//phpbb.com/b.js"></script>', + '<script src="http://phpbb.com/b.js?c=d#f"></script>', + '<script src="http://phpbb.com/b.js?c=d&assets_version=1#f"></script>', + '<script src="//[1234:d123:a105::123]/test.js"></script>', ); // Run test |