Commit graph

96 commits

Author SHA1 Message Date
Kijin Sung
0d14aca1c0 Add unit test for type="module" and fix broken tests 2025-02-15 22:13:35 +09:00
Kijin Sung
e2cfa524d0 Fix TemplateParserV1 and FrontEndFileHandler not recognizing Google webfonts '.../css2?...' URL as CSS 2024-01-10 13:09:01 +09:00
Kijin Sung
d54eb4f3d5 Handle the special case of Context::loadFile($filename, true)
https://xetown.com/questions/1793899
2023-11-09 01:17:21 +09:00
Kijin Sung
1f688c167c Change deprecated Codeception class name 2023-10-24 20:16:44 +09:00
Kijin Sung
a640306123 Move unit test for TemplateParser v1 2023-10-15 00:50:26 +09:00
Kijin Sung
3505d49de6 Separate common Template class from Template v1 parser 2023-10-03 23:27:02 +09:00
Kijin Sung
14f3704215 Update unit tests for new cache-busting querystring format 2023-09-12 23:20:40 +09:00
Kijin Sung
a50041007d Remove UTF-8 BOM and CRLF in templates when compiling them 2023-09-05 01:05:53 +09:00
Kijin Sung
cd8e6371c6 Preserve line numbers when compiling templates 2023-09-05 00:17:15 +09:00
Kijin Sung
35dec01ab0 Fix unit test for FrontEndFileHandler after html5.js removal 2023-08-31 01:04:16 +09:00
Kijin Sung
b6e1a4589a Fix #2131 missing translations 2023-06-22 21:55:25 +09:00
Kijin Sung
3b77781d15 Remove trailing whitespace in all unit tests 2023-01-30 21:48:12 +09:00
Kijin Sung
3f3f270fda Reduce warnings due to undefined variables in templates
- 템플릿에서 변수를 단순 참조할 경우 ?? '' 를 붙여 워닝 방지
- 함수 호출이나 복잡한 문법 안에 들어간 변수까지 처리해 주지는 않음
- 불필요한 오류 메시지를 줄여서 정말 중요한 오류를 찾기 쉽도록
2023-01-17 00:00:34 +09:00
Kijin Sung
5c797c72ca Fix warning in PHP 8.x due to nonexistent targetie attribute 2022-12-28 00:41:35 +09:00
Kijin Sung
9e9adcdb43 Remove support for targetie attribute on assets 2022-12-28 00:35:57 +09:00
Kijin Sung
a667228f29 Change rhymix.less back to rhymix.scss because the LESS converter seems to be abandoned :( 2022-12-26 00:50:02 +09:00
Kijin Sung
606989c451 Also support $foo->$bar syntax in cond="" and loop="" syntax 2022-10-31 01:40:40 +09:00
Kijin Sung
2a026a6c86 Allow true/false/yes/no values for autoescape
템플릿의 <config autoescape="on" /> 문법이 on, off만 지원하기 때문에
흔히 사용하는 true, false, yes, no, Y, N 등의 불리언 값을 입력하면
안전하지 않은 off로 인식하게 됨. 이 경우에도 적절히 처리하도록 변경.
2022-10-30 22:28:39 +09:00
Kijin Sung
a398c7548d Test more complex syntaxes using some of the filter tests 2022-10-30 21:43:29 +09:00
Kijin Sung
93a7348606 Support $foo->$bar syntax in templates
기존: $__Context->$__Context->bar 로 변환되어 오작동
개선: $__Context->{$__Context->bar} 로 변환되어 정상 작동되며
      변싱 순서에 따라 이 중괄호가 다시 해석되지는 않음
2022-10-30 21:41:40 +09:00
Kijin Sung
58d369cc31 Improve unit tests for default and blacklisted plugins 2022-08-06 13:31:02 +09:00
Kijin Sung
099d8397c9 Prevent path conversion of data: URL in <img> tag 2022-07-11 21:55:09 +09:00
Kijin Sung
3260d90d18 Fix relative path used in unit tests 2022-03-15 02:56:04 +09:00
Kijin Sung
f373e38d6d Fix #1893 duplicate function call when loop="" template syntax is used 2022-03-14 01:53:27 +09:00
Kijin Sung
d78ba8c77c Fix #1734 out-of-order loading of external CSS resource 2021-07-01 14:36:35 +09:00
Kijin Sung
bd075ee409 Add getBodyClassList() and removeBodyClass() methods to Context
https://xetown.com/questions/1569477
2021-05-14 22:40:38 +09:00
Kijin Sung
ccdbddf60b Fix unit test for Validator message (a4ab4f4b) 2021-02-04 22:38:42 +09:00
Kijin Sung
334b1cc277 Fix remainder of unit test warnings in PHP 8.0 2021-01-29 00:36:24 +09:00
Kijin Sung
60465fb2db Fix various warnings in PHP 8.0 2021-01-28 22:32:56 +09:00
Kijin Sung
f46b41f437 Update unit tests for latest codeception 2021-01-28 21:53:44 +09:00
Kijin Sung
af6d60e258 Add unit tests 2021-01-07 22:56:50 +09:00
Kijin Sung
436728f7b7 Fix unit test for TemplateHandler 2020-12-15 00:24:26 +09:00
Kijin Sung
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
4c62231e88 Fix template syntax for Context::unloadFile() and related unit tests 2020-12-13 21:33:27 +09:00
Kijin Sung
99728527f9 Fix incorrect testing of CSS file index in FrontEndFileHandler 2020-10-31 15:27:47 +09:00
Kijin Sung
ffe9cda5e0 Merge branch 'develop' into next 2020-08-29 23:53:31 +09:00
Kijin Sung
84dfeb64f1 Fix unit test for 313e5275 2020-08-19 17:53:09 +09:00
Kijin Sung
fda931ede0 Fix unit tests to match expected behavior 2020-06-19 13:54:37 +09:00
Kijin Sung
72577ce6bb Fix #1174 Add number_shorten() function and 'shorten' template filter 2019-07-27 21:33:30 +09:00
Kijin Sung
e027bc8319 Add jquery-latest.js to blacklist
http://code.jquery.com/jquery-latest.js 와 같은 스크립트를 임의로
로딩하지 못하도록 막음. 버전이 붙은 파일명은 이미 대부분 막혀 있었지만,
이 커밋에서는 -latest가 포함된 것도 막도록 변경함.

cf. https://xetown.com/qna/1089463
2018-10-11 14:32:10 +09:00
Kijin Sung
720e7c6527 Update unit test for TemplateHandler 2018-10-10 15:13:01 +09:00
Kijin Sung
d63da57045 Fix unit tests for autoescape 2018-10-10 14:50:34 +09:00
Kijin Sung
4fc7605e93 Remove mobile.css from unit tests 2018-08-05 19:13:58 +09:00
conory
c728250fd7 템플릿 foreach 처리시 디버그 편의를 위해 원래의 엄격한 방식으로 되돌림 2018-03-31 16:59:30 +09:00
conory
3d24c14f7f object 변수일 경우 템플릿 foreach 문이 작동하지 않는 문제 수정
#1023 문제 수정

레이아웃 확장변수 (extra_var)가 object 라서 발생한 warning 수정 (왜 object로 했는 지 모르겠지만, array가 더 맞는 듯함)
Warning: count(): Parameter must be an array or an object that implements Countable in php 7.2
2018-03-30 23:28:44 +09:00
conory
e0edf3cb53 Context::setRequestArguments() 입력 정리 2018-03-26 23:55:07 +09:00
conory
605fcc87df Fix unit test for template 2018-03-22 17:49:00 +09:00
Kijin Sung
e63d597168 Add comprehensive tests for Context::setRequestMethod() and args 2018-03-13 11:06:34 +09:00
Kijin Sung
2b40d1ef74 Fix unit test for $lang in templates 2018-03-03 12:07:13 +09:00
Kijin Sung
3feaf36c23 Adjust unit tests to accommodate new template parser behavior 2017-12-09 02:55:01 +09:00