diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/LSL_EventTests.cs')
-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; |