3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-27 18:12:22 +02:00

Started adding unit tests

This commit is contained in:
Björn Ritzl
2017-11-30 20:25:17 +01:00
parent ccd2b4a239
commit e6615e2888
16 changed files with 798 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
local monarch = require "monarch.monarch"
local monarch
go.property("screen_proxy", msg.url("#collectionproxy"))
go.property("screen_id", hash(""))
@@ -8,6 +8,7 @@ go.property("focus_url", msg.url())
function init(self)
monarch = require "monarch.monarch"
monarch.register(self.screen_id, self.screen_proxy, self.popup, self.transition_url, self.focus_url)
end
@@ -27,7 +28,7 @@ function on_message(self, message_id, message, sender)
or message_id == monarch.TRANSITION.BACK_IN
or message_id == monarch.TRANSITION.BACK_OUT then
msg.post(sender, monarch.TRANSITION.DONE)
else
monarch.on_message(message_id, message, sender)
end
else
monarch.on_message(message_id, message, sender)
end
end