@seanox/aspect-js
Version:
full stack JavaScript framework for SPAs incl. reactivity rendering, mvc / mvvm, models, expression language, datasource, virtual paths, unit test and some more
184 lines (150 loc) • 4.49 kB
Plain Text
blink
----
mapping:
----
and && empty ! div /
eq == eeq === ge >=
gt > le <= lt <
mod % ne != nee !==
not ! or ||
normal use:
----
true true
true true
true true
true true
true true
false false
false false
false false
false false
false false
true true
false false
true true
false false
false false
false false
false false
false false
true true
false false
false false
false false
true true
false false
true true
false false
true true
true true
false false
true true
false false
true true
true true
true true
true true
true true
false false
true true
true true
true true
true true
true true
true true
true true
true true
true true
true true
invalid word boundaries:
----
trueandtrue is not defined in trueandtrue true
trueeqtrue is not defined in trueeqtrue true
~~~Error_1~ in 1le2 true
~~~Error_1~ in 1ne2 true
true true
~~~Error_1~ in 2ge1 true
~~~Error_1~ in 1lt2 true
true true
Unexpected string in notempty'x' true
~~~Error_1~ in (25div5)eq5 Unexpected identifier 'eq5' in (25 /5)eq5
~~~Error_1~ in 2gt1 true
~~~Error_1~ in (10mod3)eq1 Unexpected identifier 'eq1' in (10%3)eq1
trueorfalse is not defined in trueorfalse true
lower / upper case:
----
true true
true true
true true
true true
true true
true true
true true
true true
true true
true true
true true
true true
true true
various
----
-1
1
-12
unknown is not defined in unknown
unknown is not defined in unknown + '123'
A1: Peter is not defined in Peter
A2: Peter is not defined in Peter.und.der.Wolf
A3: Peter is not defined in Peter.und.der()
B1: [object HTMLInputElement]
B2: document.getElementById(...).value is not a function in document.getElementById("HiddenField").value()
B3: Test-HF
C1: Private field '#document' must be declared in an enclosing class in #document.getElementById("HiddenField")
C2: Private field '#document' must be declared in an enclosing class in #document.getElementById("HiddenField").value()
C3: Private field '#document' must be declared in an enclosing class in #document.getElementById("HiddenField").value()
D1:
E1: ~~~Error_1~ in #
E2: ~~~Error_1~ in # + #
F1: document.getElementById(...).value is not a function in '123' + document.getElementById("HiddenField").value() + 'abc'
F2: 123Test-HFabc
G1: [object HTMLInputElement]
G2: Cannot read properties of undefined (reading 'getElementById') in document.getElementById("HiddenField_1").document.getElementById("HiddenField_1")
G3: Cannot read properties of undefined (reading 'getElementById') in document.getElementById("HiddenField_1").document.getElementById("HiddenField_2")
G4: Unexpected identifier 'document' in document.getElementById("HiddenField_1") document.getElementById("HiddenField_2")
G5: Unexpected identifier 'document' in document.getElementById("HiddenField_1")document.getElementById("HiddenField_2")
X0: <input type="hidden" id="HiddenField" value="Test-HF">
X1: <input type="hidden" id="HiddenField_1" value="Test-HF_A">
X2: <input type="hidden" id="HiddenField_2" value="Test-HF_B">
X3: <input type="hidden" id="HiddenField_3" value="Test-HF_C">
O1: <span>undefined</span>
O2: <span>xa() {
return 122;
}</span>
O3: <span>122</span>
O4: <span>xxxx</span>
O5: <span>xxxx</span>
O6: <span>xxxxx</span>
O7: <span><i>Hallo</i></span>
P1: abcdef #
P2: abcdef #
Q1: abcdef
Q2: abcdef
Q3: abcdef
Q4: abcdef
Q5: abc' + 'def
Q6: abc" + "def
QA: abc\def\
QB: abc\def\
QC: abc\def\
QD: abc\def\
QE: abc\' + 'def\
QF: abc\" + "def\
R1: abc'd'ef
R2: abc"d"ef
R3: abc'd"ef
R4: abc'd"ef
R5: abc'd'ef
R6: abc"d"ef
R7: abc'd"ef
R8: abc'd"ef
S1: <span>6</span>