aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge PR #1194 branch 'develop-olympus' into developOleg Pudeyev2013-01-132-0/+6
|\ | | | | | | | | * develop-olympus: [ticket/11323] Add tests for inclusion of defined variables
| * [ticket/11323] Add tests for inclusion of defined variablesMarc Alexander2013-01-142-0/+6
| | | | | | | | | | | | | | | | | | This adds 2 tests for the template engine. The test using include_define_variable.html will test if a defined variable, which was defined with another template variable, can be used to include a file. The second test will do the same inside a loop using a loop variable. PHPBB3-11323
* | [feature/template-events] Create a dataset for template event tests.Oleg Pudeyev2012-11-172-2/+0
| | | | | | | | | | | | Having all files in one directory is too much of a mess. PHPBB3-9550
* | [feature/template-events] Add a universal template event test.Oleg Pudeyev2012-11-172-0/+2
| | | | | | | | | | | | | | | | | | Also drop the irrelevant includejs code and add a simple template event test. The simple test is not working yet however due to the template engine not correctly tracking which template it is rendering. PHPBB3-9550
* | [feature/template-events] Template events unit testVjacheslav Trushkin2012-11-171-0/+4
| | | | | | | | | | | | Adding template events test PHPBB3-9550
* | [ticket/10970] Added support for forms such as {FOO}bar.{EXT}Fyorl2012-07-081-0/+1
| | | | | | | | PHPBB3-10970
* | [ticket/10970] Paths of the form {FOO}/a/{BAR}/b parsed correctlyFyorl2012-07-086-1/+7
| | | | | | | | | | | | | | | | | | | | A new method to handle this type of path was added and compile_tag_include, compile_tag_include_php and compile_tag_include_js were modified to use it appropriately. Tests were added for these three macros also. PHPBB3-10970
* | Merge PR #778 branch 'cyberalien/ticket/10800' into developOleg Pudeyev2012-06-113-2/+4
|\ \ | | | | | | | | | | | | | | | * cyberalien/ticket/10800: [ticket/10800] Changing html to js for includejs tests [ticket/10800] Changing template paths in tests
| * | [ticket/10800] Changing html to js for includejs testsVjacheslav Trushkin2012-05-013-2/+4
| | | | | | | | | | | | | | | | | | Changing .html to .js files for includejs tests PHPBB3-10800
* | | [ticket/10882] Add a test for including a nonexistent file.Oleg Pudeyev2012-05-102-0/+2
| | | | | | | | | | | | PHPBB3-10882
* | | [ticket/10882] Add test for an ENDIF without IF.Oleg Pudeyev2012-05-102-0/+2
| | | | | | | | | | | | PHPBB3-10882
* | | [ticket/10882] Add test for an invalid template tag.Oleg Pudeyev2012-05-102-0/+2
|/ / | | | | | | PHPBB3-10882
* | [ticket/10665] INCLUDEJS unit testVjacheslav Trushkin2012-04-011-0/+5
| | | | | | | | | | | | Adding INLCUDEJS test PHPBB3-10665
* | Merge branch 'develop' of git://github.com/phpbb/phpbb3 into developAndreas Fischer2011-09-271-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'develop' of git://github.com/phpbb/phpbb3: [ticket/10392] Alter parent namespace stripping. [ticket/10392] Test for magic loop variables with nested namespaces. [ticket/10392] Missed fix for S_BLOCK_NAME. [ticket/10392] Fix access to nested special block variables.
| * | [ticket/10392] Test for magic loop variables with nested namespaces.Chris Smith2011-09-271-1/+2
| | | | | | | | | | | | PHPBB3-10392
* | | [ticket/10384] Update unit tests to test for failing variable.Chris Smith2011-09-241-0/+2
|/ / | | | | | | PHPBB3-10384
* | [ticket/10322] Separate template varref resolution from output generationPatrick Webster2011-09-166-2/+9
| | | | | | | | | | | | | | | | | | Most template variables can now have their PHP variable name resolved instead of only compiling directly. This allows for the use of block vars in INCLUDE statements. This does not work for language variables since they require multiple checks. Added tests for the new types of allowed INCLUDEs. PHPBB3-10322
* | [ticket/10322] Dynamic template include testPatrick Webster2011-09-081-0/+3
| | | | | | | | PHPBB3-10322
* | [feature/template-engine] Test template DEFINE statements across filesNils Adermann2011-07-172-0/+6
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Added tests for template inheritance.Oleg Pudeyev2011-05-182-0/+2
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Make INCLUDEPHP relative to board root.Oleg Pudeyev2011-05-122-1/+2
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Add back IN_PHPBB preamble.Oleg Pudeyev2011-05-121-0/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Fix negative variable expressionsIgor Wiedler2011-04-252-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | compile_tag_if had the flawed approach of adding an isset statement for all variables to the beginning of the if. This fails for negative expressions, and checking those takes a considerable effort. The easier solution is to make the variable expression itself conditional, defaulting to null if it is not set. Thanks to naderman for the solution. PHPBB3-9726
* | [feature/template-engine] Added a test for reuse of loop identifiers.Oleg Pudeyev2011-04-251-0/+6
| | | | | | | | | | | | | | | | | | This currently does not pass, thus it is commented out. The reuse appears implausible in the same file, however it may be also done across template files where it is much harder to detect. PHPBB3-9726
* | [feature/template-engine] Corrected miscompilation of loop size constructs.Oleg Pudeyev2011-04-251-0/+39
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Corrected an off-by-one error in nested namespaces.Oleg Pudeyev2011-04-242-2/+14
| | | | | | | | | | | | | | | | This error resulted in a dot from the namespace being placed into variable reference in compiled template code, thus creating bogus compiled template code. PHPBB3-9726
* | [feature/template-engine] Added a test for multilevel references in loops.Oleg Pudeyev2011-04-241-0/+10
| | | | | | | | | | | | | | | | | | This currently fails. This test is a reduced version of permission_mask template in acp, which is not correctly compiled by the current template engine code. PHPBB3-9726
* | [feature/template-engine] Allow leading underscores in variable names.Oleg Pudeyev2011-04-241-0/+21
| | | | | | | | | | | | Subsilver uses ._file in overall_header. PHPBB3-9726
* | [feature/template-engine] Adjust path in includephp template.Oleg Pudeyev2011-04-241-1/+1
| | | | | | | | | | | | Now that tests are run from top level the '..' is wrong. PHPBB3-9726
* | [feature/template-engine] Update tests.Marek A. Ruszczynski2011-04-234-43/+5
| | | | | | | | PHPBB3-9726
* | Merge branch 'develop-olympus' into developNils Adermann2011-03-072-3/+3
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/10081] remove $phpEx. [ticket/10081] Cleanup Template Tests.
| * [ticket/10081] Cleanup Template Tests.Marek A. Ruszczynski2011-03-072-3/+3
| | | | | | | | | | | | There are no incomplete template tests anymore. PHPBB3-10081
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-073-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | This commit also ports all ascraeus tests to the new format. Conflicts: tests/all_tests.php tests/network/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/template/templates/includephp.html
| * [task/phpunit-xml] Use phpunit.xml for test suiteIgor Wiedler2011-01-043-4/+4
| | | | | | | | PHPBB3-9967
* | Merge branch 'develop-olympus' into developNils Adermann2010-03-106-105/+26
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/security/all_tests.php tests/security/extract_current_page.php tests/security/redirect.php tests/template/all_tests.php tests/template/template.php tests/template/templates/define.html tests/template/templates/expressions.html tests/template/templates/if.html tests/template/templates/includephp.html tests/template/templates/loop.html tests/template/templates/loop_advanced.html tests/template/templates/loop_vars.html tests/test_framework/framework.php tests/test_framework/phpbb_test_case.php tests/text_processing/all_tests.php tests/text_processing/make_clickable.php tests/utf/all_tests.php tests/utf/utf8_clean_string_test.php tests/utf/utf8_wordwrap_test.php
| * [develop-olympus] Backported 3.1 unit tests to 3.0.Nils Adermann2010-03-1014-0/+204
| | | | | Start adding unit tests for bugs you fix! Tests for anything are welcome really. We have to work on these a lot.
* Fix most of the template test suite :)Chris Smith2009-06-132-0/+10
| | | | git-svn-id: file:///svn/phpbb/trunk@9588 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Add template variable S_BLOCK_NAMEChris Smith2008-11-251-0/+8
| | | | | | | | - Modify template::alter_block_array() so it supports modification of nested blocks - Add (incomplete) tests for template::alter_block_array() git-svn-id: file:///svn/phpbb/trunk@9116 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Make a start on completing the phpDoc comments for the template engineChris Smith2008-11-245-2/+39
| | | | | | | | - Tidy template engine code, mainly PHP5 stuff, made some methods void instead of just returning true - Add tests for the remaining untested compilation code git-svn-id: file:///svn/phpbb/trunk@9115 89ea8834-ac86-4346-8a33-228a782c2dd0
* Test is (even|odd) by yChris Smith2008-11-241-0/+11
| | | | git-svn-id: file:///svn/phpbb/trunk@9110 89ea8834-ac86-4346-8a33-228a782c2dd0
* More testsChris Smith2008-11-236-0/+15
| | | | git-svn-id: file:///svn/phpbb/trunk@9100 89ea8834-ac86-4346-8a33-228a782c2dd0
* test advanced loop constructsChris Smith2008-11-231-0/+59
| | | | git-svn-id: file:///svn/phpbb/trunk@9099 89ea8834-ac86-4346-8a33-228a782c2dd0
* S_NUM_ROWS gives you the number of rows in a blockChris Smith2008-11-231-0/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
* Refactor and fix :)Chris Smith2008-11-231-0/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@9093 89ea8834-ac86-4346-8a33-228a782c2dd0
* Run template tests over non-cached data as wellChris Smith2008-11-231-0/+5
| | | | git-svn-id: file:///svn/phpbb/trunk@9092 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Deprecate S_ROW_COUNT use S_ROW_NUMChris Smith2008-11-222-0/+6
| | | | | | | | | - S_ROW_NUM, S_FIRST_ROW, S_LAST_ROW are now using internal template engine variables saving memory - Other small changes - Update of template tests git-svn-id: file:///svn/phpbb/trunk@9087 89ea8834-ac86-4346-8a33-228a782c2dd0
* Initial template tests, a bit hackish currently, excuse the rushed nature of ↵Chris Smith2008-10-157-0/+140
this commit got to catch a train :) git-svn-id: file:///svn/phpbb/trunk@9020 89ea8834-ac86-4346-8a33-228a782c2dd0