mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-25 14:00:45 -08:00
Add test for invalid pragma
This commit is contained in:
parent
c4d0b61827
commit
3f81e3651e
3 changed files with 5 additions and 2 deletions
|
|
@ -30,6 +30,7 @@ Error/DeserializeOperator/MissingOperand: Filter Error: Missing operand for 'des
|
|||
Error/DeserializeOperator/UnknownDeserializer: Filter Error: Unknown deserializer provided as operand for the 'deserialize' operator
|
||||
Error/Filter: Filter error
|
||||
Error/FilterSyntax: Syntax error in filter expression
|
||||
Error/FilterPragma: Filter Error: Unknown pragma filter
|
||||
Error/FilterRunPrefix: Filter Error: Unknown prefix for filter run
|
||||
Error/IsFilterOperator: Filter Error: Unknown parameter for the 'is' filter operator
|
||||
Error/FormatFilterOperator: Filter Error: Unknown suffix for the 'format' filter operator
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ exports.compileFilter = function(filterString,options) {
|
|||
default:
|
||||
return function(results,source,widget) {
|
||||
results.clear();
|
||||
results.push($tw.language.getString("Error/FilterRunPrefix"));
|
||||
results.push($tw.language.getString("Error/FilterPragma"));
|
||||
};
|
||||
}
|
||||
return function(results,source,widget) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ title: Output
|
|||
|
||||
(<$text text={{{ 1 1 ::defaultprefix:all 1 1 +[join[X]] }}}/>)
|
||||
|
||||
(<$text text={{{ ::nonexistent X }}}/>)
|
||||
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>(1X1X1Y1)</p><p>(1X1X1)</p>
|
||||
<p>(1X1X1Y1)</p><p>(1X1X1)</p><p>(Filter Error: Unknown pragma for filter)</p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue