[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 733f36a123 203/212: Added more failing indent
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 733f36a123 203/212: Added more failing indentation tests |
Date: |
Wed, 26 Jan 2022 01:51:27 -0500 (EST) |
branch: externals/phps-mode
commit 733f36a123cc255935c302d441b31257d16560e8
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added more failing indentation tests
---
TODO.md | 2 +-
test/phps-mode-test-indent.el | 16 +++++++++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/TODO.md b/TODO.md
index c234814e8e..58c2a82ef1 100644
--- a/TODO.md
+++ b/TODO.md
@@ -18,5 +18,5 @@
}
* Imenu-generation of conditionally defined functions and classes
-
+* Cache elisp data in file-system
diff --git a/test/phps-mode-test-indent.el b/test/phps-mode-test-indent.el
index 8e9e7f124c..01e88bfd33 100644
--- a/test/phps-mode-test-indent.el
+++ b/test/phps-mode-test-indent.el
@@ -640,11 +640,25 @@
"<?php\nif (true) {\n echo '<script type=\"text/javascript\">'\n
. 'jQuery(document).ready(function() { '\n . 'window.open(\"'\n .
$url . '\", \"_blank\");'\n . ' });</script>';\n}"
"Multi-line echo statement with HTML markup 3")
- ;; TODO Make this pass
(phps-mode-test-indent--should-equal
"<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n
<title>Was here</title>\n <meta charset=\"ISO-8559-1\" />\n</head>\n<body>\n
<div>\n <p>\n My mixed content\n <br>\n
Was here\n </p>\n </div>\n</body>\n</html>"
"Plain HTML markup")
+ (phps-mode-test-indent--should-equal
+ "<?php\n\nif (true) {\n if (\n true\n ) {\n return
false;\n }\n\n /**\n * My first line,\n * my second line.\n
*\n * @since Module 1.0.0\n */\n echo 'here';\n\n}\n"
+ "Doc-comment ending with comma and dot.")
+
+ (phps-mode-test-indent--should-equal
+ "<?php\nif (true) {\n if (\n (!isset(myClass()->property)\n
|| !$variable = myClass()->property2->method())\n && false\n )
{\n }\n}\n"
+ "Parenthesized condition on multi-rows")
+
+ (phps-mode-test-indent--should-equal
+ "<?php\nif (true) {\n require_once(myClass()->method1()\n .
'/hard-coded-file.php');\n}\n"
+ "Require once expression on multiple rows")
+
+ (phps-mode-test-indent--should-equal
+ "<?php\nif (true) {\n $html .= 'My text'\n . 'and more text';\n
foreach ($data as $key => $fields) {\n $html .= '<strong>' . $key .
'</strong>';\n foreach ($fields as $key => $value) {\n $html
.= '<span>' . $value . '</span>';\n }\n $html .= '</ul></li>';\n
}\n $html .= '</dd>';\n}\n"
+ "Two nested foreach loops containing string concatenation assignments")
)
- [elpa] externals/phps-mode 6d8544d7fa 171/212: Added two more failing tests for indentation, (continued)
- [elpa] externals/phps-mode 6d8544d7fa 171/212: Added two more failing tests for indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 616e3dc7ea 172/212: Added a TODO file, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d74686e07c 180/212: Started on optimizing lexer, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 06b35e4bf1 183/212: Fixed TODO item in this branch, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 40ecf58372 189/212: Adjustments for indent helper function determining last index line, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode edba476df8 191/212: Byte compilation fixes for indentation, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 580298c395 201/212: Improved indentation of multi-line concatenated strings containing brackets, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 3e79319cf5 195/212: Added failing indent test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 72c692b511 210/212: Re-scan buffer interactively now clears cache and kills running threads, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 55d59ee365 207/212: More work on cache support, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 733f36a123 203/212: Added more failing indentation tests,
Christian Johansson <=
- [elpa] externals/phps-mode d4f0db2c0c 211/212: Added failing bookkeeping test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode cb4d95cd7a 204/212: Passed new indentation tests, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode a907f103f0 026/212: More work on AST for bookkeeping, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 95078e0db2 029/212: Added SDT for increment variable production, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode d90b470109 035/212: Fixed bookkeeping of class property, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode bcf0c68945 038/212: AST-imenu and AST-bookkeeping now in standalone files, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 4e021b8413 046/212: Bookkeeping via AST now passing method calls, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 712f5e9f2b 049/212: Removed invalid syntax code from old bookkeeping test, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 1dc3b453c9 043/212: Passed bookkeeping via AST for try catch blocks, Christian Johansson, 2022/01/26
- [elpa] externals/phps-mode 882e6f75dc 062/212: Work on SDT for interface methods, Christian Johansson, 2022/01/26