diff options
author | Justin Clark-Casey (justincc) | 2013-12-21 00:37:56 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-12-21 00:37:56 +0000 |
commit | a5e478054723cb28403e9d2f4fef1ac306e673c1 (patch) | |
tree | 7029357378cc80f2102d7c397111c71556e57c82 /OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests | |
parent | Add lsl event argument checking for attach and on_rez (diff) | |
download | opensim-SC_OLD-a5e478054723cb28403e9d2f4fef1ac306e673c1.zip opensim-SC_OLD-a5e478054723cb28403e9d2f4fef1ac306e673c1.tar.gz opensim-SC_OLD-a5e478054723cb28403e9d2f4fef1ac306e673c1.tar.bz2 opensim-SC_OLD-a5e478054723cb28403e9d2f4fef1ac306e673c1.tar.xz |
Add lsl event arg checking for at_rot_target
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs index 4e27c00..854b4bf 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs | |||
@@ -260,6 +260,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests | |||
260 | TestVectorArgEvent("land_collision_end"); | 260 | TestVectorArgEvent("land_collision_end"); |
261 | } | 261 | } |
262 | 262 | ||
263 | [Test] | ||
264 | public void TestAtRotTargetEvent() | ||
265 | { | ||
266 | TestHelpers.InMethod(); | ||
267 | // TestHelpers.EnableLogging(); | ||
268 | |||
269 | TestIntRotRotArgEvent("at_rot_target"); | ||
270 | } | ||
263 | 271 | ||
264 | private void TestIntArgEvent(string eventName) | 272 | private void TestIntArgEvent(string eventName) |
265 | { | 273 | { |
@@ -285,6 +293,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests | |||
285 | TestCompile("default { " + eventName + "(vector v, vector w) {{}} }", true); | 293 | TestCompile("default { " + eventName + "(vector v, vector w) {{}} }", true); |
286 | } | 294 | } |
287 | 295 | ||
296 | private void TestIntRotRotArgEvent(string eventName) | ||
297 | { | ||
298 | TestCompile("default { " + eventName + "(integer n, rotation r, rotation s) {} }", false); | ||
299 | TestCompile("default { " + eventName + "{{}} }", true); | ||
300 | TestCompile("default { " + eventName + "(string s) {{}} }", true); | ||
301 | TestCompile("default { " + eventName + "(integer n, rotation r, rotation s, rotation t) {{}} }", true); | ||
302 | } | ||
303 | |||
288 | private void TestCompile(string script, bool expectException) | 304 | private void TestCompile(string script, bool expectException) |
289 | { | 305 | { |
290 | bool gotException = false; | 306 | bool gotException = false; |