Annotation of parser3/tests/336.html, revision 1.1

1.1     ! moko        1: @main[]
        !             2: 
        !             3: $a[^A::create[]]
        !             4: $b[^B::create[]]
        !             5: 
        !             6: Testing old implementation bugs:
        !             7: 
        !             8: ok: ^MAIN:a.test[]
        !             9: ok: ^b.ok[$a]
        !            10: bug1: ^b.bug1[$a]
        !            11: bug2: ^b.bug2[]
        !            12: bug3: ^b.bug3[]
        !            13: 
        !            14: Testing new implementation:
        !            15: 
        !            16: Dynamic properties:
        !            17: ^b.test_property[]
        !            18: 
        !            19: Static class properties:
        !            20: ^B:test_property[]
        !            21: 
        !            22: Misc:
        !            23: ^b.test_implementation[]
        !            24: 
        !            25: 
        !            26: @CLASS
        !            27: A
        !            28: 
        !            29: @create[]
        !            30: $valueA[value]
        !            31: 
        !            32: @test[]
        !            33: self: $self.CLASS_NAME, ^if(^reflection:dynamical[]){dynamical}{static}
        !            34: 
        !            35: @GET_property[]
        !            36: Get A property: '$valueA', self $self.CLASS_NAME, ^if(^reflection:dynamical[]){dynamical}{static}
        !            37: 
        !            38: @SET_property[v]
        !            39: $MAIN:log[Set A property: '$v', self $self.CLASS_NAME, ^if(^reflection:dynamical[]){dynamical}{static}]
        !            40: $valueA[$v]
        !            41: 
        !            42: 
        !            43: @CLASS
        !            44: B
        !            45: 
        !            46: @BASE
        !            47: A
        !            48: 
        !            49: @create[]
        !            50: ^BASE:create[]
        !            51: $valueB[anotherValue]
        !            52: $valueC[dynamic]
        !            53: 
        !            54: @ok[a]
        !            55: ^a.test[]
        !            56: 
        !            57: @bug1[a]
        !            58: $A:whatever ^a.test[]
        !            59: 
        !            60: @bug2[]
        !            61: ^MAIN:a.test[]
        !            62: 
        !            63: @bug3[]
        !            64: $t[test] ^A:$t[]
        !            65: 
        !            66: 
        !            67: @GET_property[]
        !            68: Get B property: '$valueB', self $self.CLASS_NAME, ^if(^reflection:dynamical[]){dynamical}{static}
        !            69: 
        !            70: @SET_property[v]
        !            71: $MAIN:log[Set B property: '$v', self $self.CLASS_NAME, ^if(^reflection:dynamical[]){dynamical}{static}]
        !            72: $valueB[$v]
        !            73: 
        !            74: 
        !            75: @test_property[]
        !            76: $property
        !            77: $property[-]
        !            78: $MAIN:log
        !            79: 
        !            80: $B:property
        !            81: $B:property[ups]
        !            82: $MAIN:log
        !            83: 
        !            84: $A:property
        !            85: $A:property[-]
        !            86: $MAIN:log
        !            87: 
        !            88: $BASE:property
        !            89: $BASE:property[-]
        !            90: $MAIN:log
        !            91: 
        !            92: 
        !            93: @dump[o]
        !            94: class: $o.CLASS_NAME
        !            95: content: ^json:string[$o; $.indent(true) ]
        !            96: 
        !            97: @test_implementation[]
        !            98: B:CLASS: ^dump[$B:CLASS] - before
        !            99: B::create: ^dump[^B::create[]] - no valueA and valueB as they are now class B properties
        !           100: B:CLASS: ^dump[$B:CLASS] - after
        !           101: 
        !           102: testing constructor:
        !           103: A::create: ^dump[^A::create[]]
        !           104: A:CLASS: ^dump[$A:CLASS]
        !           105: 
        !           106: A:CLASS_NAME: $A:CLASS_NAME
        !           107: B:CLASS_NAME: $B:CLASS_NAME

E-mail: