pharo-graphics / Toplo

A widget framework on top of Bloc
MIT License
18 stars 8 forks source link

testInstallOnlyOnce has broken source #10

Closed Ducasse closed 1 year ago

Ducasse commented 1 year ago

https://github.com/pharo-project/pharo/issues/12268

testInstallOnlyOnce

    | widget d0 d1 d1cpt |
    widget End of statement expected -> := ToWidget new.
    d0 := widget dresser.
    self assert: d0 isInstalled.
    d1cpt := 0.
    d1 := ToActionDresser new installAction: [ :e | d1cpt := d1cpt + 1 ].

    widget addDresser: d1.
    self assert: d1 isInstalled.
    self assert: d1cpt equals: 1.

    widget addDresser: d1.
    self assert: d1 isInstalled.
    self assert: d1cpt equals: 1.
Ducasse commented 1 year ago

To me the package mcz file is corrupted. Now I do not get anything anymore because once I could load it then I could reload the old one.

Ducasse commented 1 year ago

The class of this test is an obsolete class. So this should be fixed too.