diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-06-20 16:03:05 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-06-20 16:03:05 (GMT) |
| commit | 9099c2398e5a169db95ef6b36cda4c44e47a32d1 (patch) | |
| tree | c04589659a719005980512faa2f2725c9f4d2691 /wasp/boards/simulator | |
| parent | 29d619aebce14e1c29e5bdd9d8bfdfe1febafcdd (diff) | |
widgets: Refactor the stopwatch as a widget
This is purely a refactoring for the purposes of code reuse. No change
of behaviour is expected.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator')
| -rw-r--r-- | wasp/boards/simulator/test_smoke.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wasp/boards/simulator/test_smoke.py b/wasp/boards/simulator/test_smoke.py index bc33eb7..e0afa30 100644 --- a/wasp/boards/simulator/test_smoke.py +++ b/wasp/boards/simulator/test_smoke.py @@ -80,7 +80,7 @@ def test_stopwatch(system): wasp.watch.button.value(0) system.step() - assert(system.app._started_at > 0) + assert(system.app._timer._started_at > 0) wasp.watch.button.value(1) system.step() @@ -89,7 +89,7 @@ def test_stopwatch(system): wasp.watch.button.value(0) system.step() - assert(system.app._started_at == 0) + assert(system.app._timer._started_at == 0) wasp.watch.button.value(1) system.step() |
