TrayTempo v0.2.0 : minuteur Pomodoro Windows en Nim avec interface intuitive
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
## test_floating.nim
|
||||
## ==================
|
||||
## Test d'intégration de la fenêtre flottante : crée, met à jour puis détruit
|
||||
## la vraie fenêtre Win32 et vérifie que l'état est cohérent. Ce test réduit le
|
||||
## fossé entre « compile » et « observé » pour cette fonctionnalité.
|
||||
|
||||
import std/unittest
|
||||
import ../src/floating
|
||||
|
||||
suite "floating window":
|
||||
test "show, update and hide manage a real window":
|
||||
check not floatingVisible()
|
||||
showFloating()
|
||||
check floatingVisible()
|
||||
# La mise à jour du texte ne doit pas lever d'erreur.
|
||||
updateFloating("Travail 24:59")
|
||||
hideFloating()
|
||||
check not floatingVisible()
|
||||
Reference in New Issue
Block a user