diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/examples/lua_script.edc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libraries/edje/src/examples/lua_script.edc b/libraries/edje/src/examples/lua_script.edc index 24e8ebe..23c2926 100644 --- a/libraries/edje/src/examples/lua_script.edc +++ b/libraries/edje/src/examples/lua_script.edc | |||
@@ -104,6 +104,10 @@ collections { | |||
104 | print("lua::init ... " .. D.val); | 104 | print("lua::init ... " .. D.val); |
105 | edje.echo("lua::echo('hello world')"); | 105 | edje.echo("lua::echo('hello world')"); |
106 | 106 | ||
107 | --// How to check the edje version. | ||
108 | version = edje.version(); | ||
109 | print("The edje version number is " .. version.major .. "." .. version.minor); | ||
110 | |||
107 | --// actually add the timer to call mycb in 1.23 sec | 111 | --// actually add the timer to call mycb in 1.23 sec |
108 | D.tim = edje.timer(1.23, mycb); | 112 | D.tim = edje.timer(1.23, mycb); |
109 | D.tra = edje.transition(5.0, mycb3); | 113 | D.tra = edje.transition(5.0, mycb3); |
@@ -168,6 +172,14 @@ collections { | |||
168 | print(D.text:text()); | 172 | print(D.text:text()); |
169 | D.text:show(); | 173 | D.text:show(); |
170 | 174 | ||
175 | --// Put a few bogus API calls here to test the bogus API protection, | ||
176 | --// If the bogus API protection works, these should get ignored, but everything else runs smoothly. | ||
177 | --// Otherwise, the map is not done, the bubbles are not done, but the timers keep runinng. | ||
178 | bogus.failme(1, "two", D.rect); | ||
179 | temp = bogus.failme2(); | ||
180 | D.text.bogus(); | ||
181 | edje.bogus2(); | ||
182 | |||
171 | --// Fun with maps! | 183 | --// Fun with maps! |
172 | D.map = edje.map(4); --// 4 is the only supported map size at the moment. | 184 | D.map = edje.map(4); --// 4 is the only supported map size at the moment. |
173 | --// These all do the same thing. | 185 | --// These all do the same thing. |